Class CustomerIsInSegmentTriggerTaskCmdImpl

    • 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
    • Constructor Detail

      • CustomerIsInSegmentTriggerTaskCmdImpl

        public CustomerIsInSegmentTriggerTaskCmdImpl()
    • Method Detail

      • 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
        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.
      • forwardTriggersForProcessing

        public void forwardTriggersForProcessing()
        This method finds all the customers in the customer segments associated with this Trigger element, and forwards the trigger to the marketing services for each customer. If the activity is defined in a Storefront Asset Store, then the customer are found in each extended site that refers to the Storefront Asset Store with a '' relationship.
        Specified by:
        forwardTriggersForProcessing in interface MarketingCampaignElementTaskCmd
        forwardTriggersForProcessing in class MarketingCampaignElementTaskCmdImpl
      • processUsersBelongingToSegmentTriggerInStore

        public void processUsersBelongingToSegmentTriggerInStore(java.lang.Integer storeId,
                                                                 MemberGroupAccessBean customerSegment,
                                                                 java.lang.Integer elementId,
                                                                 java.lang.Integer activityId)
                                                          throws java.lang.Exception
        This method finds all the users in the specified customer segment, and forwards the trigger for each user. This method uses the ListUsersInStoreMemberGroupCmd command.
        storeId - The identifier of the store in which to find the users in the segment.
        customerSegment - The access bean for the customer segment.
        elementId - The identifier of the trigger element.
        activityId - The identifier of the marketing activity.