com.ibm.commerce.marketing.commands.elements

Class EventAndParametersTriggerTaskCmdImpl

  • All Implemented Interfaces:
    CustomerFilterUserBehaviorTargetTaskCmd, EventAndParametersTriggerTaskCmd, MarketingCampaignElementTaskCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable


    public class EventAndParametersTriggerTaskCmdImpl
    extends CustomerFilterUserBehaviorTargetTaskCmdImpl
    implements EventAndParametersTriggerTaskCmd
    This command extends the CustomerFilterUserBehaviorTargetTaskCmd command to check if a customer's user behavior matches the specified criteria. The customer has to have performed the a particular event, with the appropriate parameters, a specific number of times within the given time frame. The customer's behavior is stored in the DMUSERBHVR database table. This command has validation for the Event and Parameters trigger when the activity is activated.
    See Also:
    Serialized Form
    • 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.
      • PARAM_EVENT_NAME

        public static final java.lang.String PARAM_EVENT_NAME
        The parameter that identifies the name of the event. This is used in the behavior rule to detect the occurrence of the event.
        See Also:
        Constant Field Values
      • PARAM_PARAMETER_ONE_NAME

        public static final java.lang.String PARAM_PARAMETER_ONE_NAME
        The parameter that identifies the name of the main parameter. This is used in the behavior rule to detect the occurrence of the event.
        See Also:
        Constant Field Values
      • PARAM_PARAMETER_ONE_VALUE

        public static final java.lang.String PARAM_PARAMETER_ONE_VALUE
        The parameter that identifies the values of the main parameter. This is used in the behavior rule to detect the occurrence of the event.
        See Also:
        Constant Field Values
      • PARAM_PARAMETER_TWO_NAME

        public static final java.lang.String PARAM_PARAMETER_TWO_NAME
        The parameter that identifies the name of the optional second parameter. This is used in the behavior rule to detect the occurrence of the event.
        See Also:
        Constant Field Values
      • PARAM_PARAMETER_TWO_VALUE

        public static final java.lang.String PARAM_PARAMETER_TWO_VALUE
        The parameter that identifies the value of the optional second parameter. This is used in the behavior rule to detect the occurrence of the event.
        See Also:
        Constant Field Values
      • PARAM_COMPARISON

        public static final java.lang.String PARAM_COMPARISON
        The parameter that identifies the comparison to use when checking the main parameter. This is used in the behavior rule to detect the occurrence of the event.
        See Also:
        Constant Field Values
    • Constructor Detail

      • EventAndParametersTriggerTaskCmdImpl

        public EventAndParametersTriggerTaskCmdImpl()
    • Method Detail

      • validateParameters

        public java.util.List validateParameters(java.util.Map elementParameters)
        This method validates that all the required parameters have been set appropriately for the trigger as specified in the behavior rule. It calls the validateDates method to validate the optional date parameters. It checks for the existence of eventName, numberOfTimes, parameterOneName, and comparison. If comparison is not equal to "any", then the parameterOneValueList must be specified. If either of parameterTwoName or parameterTwoValue is specified, then both must be specified.
        Specified by:
        validateParameters in interface MarketingCampaignElementTaskCmd
        Overrides:
        validateParameters in class CustomerFilterUserBehaviorTargetTaskCmdImpl
        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.