com.ibm.commerce.marketing.commands.elements

Class CustomerFilterUserBehaviorTargetTaskCmdImpl

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

        public static final java.lang.String LOCATION_CURRENT_REQUEST
        Constant to specify that only the current request should be checked for the user behavior
        See Also:
        Constant Field Values
      • LOCATION_CUSTOMER_HISTORY

        public static final java.lang.String LOCATION_CUSTOMER_HISTORY
        Constant to specify that the customer's entire user behavior history, including the current request, should be checked for the user behavior
        See Also:
        Constant Field Values
      • LOCATION_REFERRAL

        public static final java.lang.String LOCATION_REFERRAL
        Constant to specify that the current request referral URL should be checked for the user behavior
        See Also:
        Constant Field Values
    • Constructor Detail

      • CustomerFilterUserBehaviorTargetTaskCmdImpl

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

      • performExecute

        public void performExecute()
        This method checks if a customer's user behavior matches the specified criteria. The customer's behavior is stored in the DMUSERBHVR database table. The following parameters need to be provided in the task command parameters:
        • anyOrAll Does the behavior have to match all, or one or more, when multiple data strings are being checked. 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: =, !=
        • data The field data is a comma separated list of strings of the behavior to match.
        • numberOfTimesOperator The operator to use when checking how many times this behavior has occurred. Valid values are: =, <, <=, >, >=. However, from a business point of view, only >= (3 or more times) and < (less than 2 times) make sense.
        • numberOfTimes A number to indicate how many times this behavior has occurred.
        • daysOperator The operator to use when checking when this behavior has occurred. Valid values are:=, <, <=, >, >=. However, from a business point of view, only <= (within) and > (prior) make sense.
        • daysValue When has this behavior has occurred; within or prior to the specified number of days.
        • matchLocations Should just the current request be checked to match the specified behavior, or should the entire customer's behavior, including the current request, be checked.
        This method sets the task command return value to true if the customer's user behavior 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 currently performs no actions. The campaign element classes that extend from this command perform the element validation. Those classes check for categoryId or productId, depending on the target type as specified in the behavior rule. URL parameters, Cookie and referral URL do not require this type of validation. Values for number of times and number of times operator are always checked. Values for days and number of days operator are checked to be set for Customer History behavior and checked not to be set for Current Request.
        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.