com.ibm.commerce.marketing.dialog.trigger

Class ProcessCommandExitFactory

  • java.lang.Object
    • com.ibm.commerce.marketing.dialog.trigger.ProcessCommandExitFactory
  • All Implemented Interfaces:
    com.ibm.commerce.command.event.CommandExecutionEventFactory


    public class ProcessCommandExitFactory
    extends java.lang.Object
    implements com.ibm.commerce.command.event.CommandExecutionEventFactory
    This class is called when a command successfully exits. The commands for which this will happen are configured in wc-admin.component.xml for properties beginning with processOnCommandExit. When an activity is created that requires the command exit to call the marketing runtime, then a command execution trigger will be enabled for the configured command.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      The IBM copyright notice.
    • Constructor Summary

      Constructors 
      Constructor and Description
      ProcessCommandExitFactory()
      This method is the default constructor, and calls the base class constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void generateEvent(ECCommand command, int eventType, java.lang.String eventName, java.io.Serializable customData)
      This method checks if there is a behavior rule set up based on the command executed and the stage of execution, and calls the marketing trigger handler to process the trigger if there is a match.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        The IBM copyright notice.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ProcessCommandExitFactory

        public ProcessCommandExitFactory()
        This method is the default constructor, and calls the base class constructor.
    • Method Detail

      • generateEvent

        public void generateEvent(ECCommand command,
                                  int eventType,
                                  java.lang.String eventName,
                                  java.io.Serializable customData)
        This method checks if there is a behavior rule set up based on the command executed and the stage of execution, and calls the marketing trigger handler to process the trigger if there is a match.
        Specified by:
        generateEvent in interface com.ibm.commerce.command.event.CommandExecutionEventFactory
        Parameters:
        command - The command being executed.
        eventType - The stage of command execution when the audit event occurs.
        eventName - The name of the event.
        customData - Any custom data associated with the event.
        See Also:
        CommandExecutionEventFactory.generateEvent(com.ibm.commerce.command.ECCommand, int, java.lang.String, java.io.Serializable)