com.ibm.commerce.marketing.commands.elements

Class EmailBulkActionTaskCmdImpl

    • Field Detail

      • COPYRIGHT

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

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

        public static final java.lang.String PARAM_TEMPLATE_ID
        Constant representing the email message ID name value pair.
        See Also:
        Constant Field Values
    • Constructor Detail

      • EmailBulkActionTaskCmdImpl

        public EmailBulkActionTaskCmdImpl()
        This method is the default constructor. It currently performs no actions.
    • Method Detail

      • performExecute

        public void performExecute()
        This method sends an email based on the specified email template to the specified customer segments. The following parameters need to be provided in the task command parameters:
        • templateId The email message ID of the template to send as the email.
        • segmentIdList A comma separated list of customer segment IDs to whom to send the bulk email.
        • anyOrAll Should the email be sent to the customers in each of the specified groups (any), or should the email be sent to those who are in all of the specified groups (all). Valid values are: any, all.
        • replyTo The reply to email address to include in the email.
        This method sets the task command return value to true if the EmailActivitySaveCmd was successfully called. If email has not been configured for the store, then this method will set the task command return value to false.
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class MarketingCampaignElementTaskCmdImpl
      • 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 that the email template exists in the EMLMSG database table. It checks for segmentIdList and that the customer segment exists in the MBRGRP database table. It checks for replyTo and that the e-mail address is formatted correctly. It checks that the associated activity has a start date and that it is after the next scheduled daily e-mail send time. It also checks that the e-mail configuration has been set up for the store.
        Specified by:
        validateParameters in interface MarketingCampaignElementTaskCmd
        Overrides:
        validateParameters in class MarketingCampaignElementTaskCmdImpl
        Parameters:
        elementParameters - The name value pairs for this element.
        Returns:
        This method returns a list of ApplicationError exceptions that contains any validation errors. The list may be empty or be null.