Class CustomerAbandonsShoppingCartTriggerTaskCmdImpl

    • 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

      • CustomerAbandonsShoppingCartTriggerTaskCmdImpl

        public CustomerAbandonsShoppingCartTriggerTaskCmdImpl()
    • 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 numberOfDays and repeatSchedule. If the repeatSchedule is runOnce, then the parameter maximumNumberOfDaysCartHasBeenAbandoned is required and this element must be the first element in the activity flow. As well, there can only be one element in the activity that has the runOnce repeat schedule defined.
        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.
      • processAbandonedCartsInStore

        public void processAbandonedCartsInStore(java.lang.Integer storeId,
                                                 java.lang.Integer elementId,
                                                 java.lang.Integer activityId)
                                          throws java.lang.Exception
        This method finds all the users who have abandoned their shopping cart, and forwards the trigger for each user.
        storeId - The identifier of the store in which to find the users in the segment.
        elementId - The identifier of the trigger element.
        activityId - The identifier of the marketing activity.
      • getOwnersOfAbandonedShoppingCarts

        public java.util.List getOwnersOfAbandonedShoppingCarts(java.lang.Integer storeId,
                                                                java.lang.String afterDate,
                                                                java.lang.String beforeDate)
                                                         throws java.lang.Exception
        This method gets the member IDs and personalization IDs for customers who have abandoned their shopping cart. An abandoned shopping cart is one whose last update date is before the date specified in the beforeDate parameter. The afterDate parameter restricts the query to find carts whose last update date is between afterDate and before beforeDate.
        storeId - The unique ID of the store.
        afterDate - The oldest value allowed for the shopping cart last update date.
        beforeDate - The most recent value allowed for the shopping cart last update date.
        This method returns the list with the customer information. Every element in the list is a child-list; in the child-list, the 1st element is the customer's member ID, and the 2nd element is the customer's personalization ID.