com.ibm.commerce.marketing.commands.elements

Class CustomerSegmentTargetTaskCmdImpl

    • 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
      • ANY

        public static final java.lang.String ANY
        Constant to specify that one or more can match (any, or)
        See Also:
        Constant Field Values
      • ALL

        public static final java.lang.String ALL
        Constant to specify that all must match (all, and)
        See Also:
        Constant Field Values
    • Constructor Detail

      • CustomerSegmentTargetTaskCmdImpl

        public CustomerSegmentTargetTaskCmdImpl()
    • Method Detail

      • performExecute

        public void performExecute()
        This method checks if a customer belongs to a specific segment, or combination of segments. The customer segments are defined using accelerator. The following parameters need to be provided in the task command parameters:
        • segmentIdList A comma separated list of customer segment IDs that are defined in the MBRGRP table.
        • anyOrAll Does the customer have to belong to all, or one or more of the segments when multiple segments are listed. Valid values are: any, all
        • containsOperator The indicator for whether the customer's behavior should have, or should not have the data being checked. Valid values are: =, !=
        This method sets the task command return value to true if the customer's segment membership matches the specified criteria, otherwise it sets 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 segmentIdList.
        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.