Class EmailIndividualActionTaskCmdImpl

    • Field Detail


        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values

        public static final java.lang.String CLASSNAME
        The name of this class.
        See Also:
        Constant Field Values

        public static final java.lang.String PARAM_SEND_IMMEDIATE
        Constant to specify the e-mail should be send immediately
        See Also:
        Constant Field Values
    • Constructor Detail

      • EmailIndividualActionTaskCmdImpl

        public EmailIndividualActionTaskCmdImpl()
    • Method Detail

      • performExecute

        public void performExecute()
        This method sends an email based on the specified email template to the specified user. The following parameters need to be provided in the task command parameters:
        • emailMessageId The email message ID of the template to send as the email.
        The following optional parameters can be provided in the task command parameters:
        • replyTo The email address to specify as the reply to address.
        • sendImmediate Should the email be sent immediately, or once per day at the configured daily time.
        This method sets the task command return value to true.
        Specified by:
        performExecute in interface
        performExecute in class MarketingCampaignElementTaskCmdImpl
      • getMemberIdToSendEmail

        public java.lang.Long getMemberIdToSendEmail()
        This method returns the member ID to whom to send the e-mail. The default implementation tries to find a registered user associated with the current personalization ID. If none if found, then it tries to find the latest guest user associated with the personalization ID. If none is found, then it returns the current member ID. A customization could override this method if the member ID may not be associated with the personalization ID, for example, to send the e-mail to the Account Representative associated with this users B2B account. Another example is that a specific Sales Representative should be send an e-mail that the customer has places an order for over $100,000.
        Specified by:
        getMemberIdToSendEmail in interface EmailIndividualActionTaskCmd
        This method returns a member ID to which the e-mail should be sent. If null is returned, then no e-mail will be sent.
      • validateParameters

        public java.util.List validateParameters(java.util.Map elementParameters)
        This method validates that all the required name value pairs have been set for the campaign element. It checks for emailMessageId and replyTo. The value replyTo is not mandatory, however, this method checks that it contains a valid e-mail address. It also checks that the e-mail configuration has been set up for the store.
        Specified by:
        validateParameters in interface MarketingCampaignElementTaskCmd
        validateParameters in class MarketingCampaignElementTaskCmdImpl
        elementParameters - The name value pairs for this element.
        This method returns a list of ApplicationError exceptions that contains any validation errors. The list may be empty or be null.
      • cleanup

        public static void cleanup()
        This method cleans up the thread local resources. The command context used when calling the command EmailIndividualCreateCmd is stored in a thread local variable when running under a batch dialog activity.