com.ibm.commerce.ubf.commands

Interface EntryActionCmd

  • All Superinterfaces:
    com.ibm.websphere.command.CacheableCommand, com.ibm.commerce.command.CacheableECCommand, com.ibm.websphere.command.Command, com.ibm.commerce.command.ECCommand, com.ibm.commerce.command.TaskCommand
    All Known Subinterfaces:
    ContractSubmitCheckApprovalCmd
    All Known Implementing Classes:
    ApprovalNotifyCmdImpl, ContractSubmitCheckApprovalCmdImpl


    public interface EntryActionCmd
    extends com.ibm.commerce.command.TaskCommand
    Task commands used as entry action must implement this interface. This interface will allow communication between the command and the BusinessFlowEventListener. Entry action commands are optional and executed when a business process enters a state. This type of command can be used to trigger an event to start an automatic transition or perform non-state-altering business processing, such as sending out notification.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM copyright notice field.
      static java.lang.String NAME
      The name of the Command Interface class.
      • Fields inherited from interface com.ibm.commerce.command.CacheableECCommand

        defaultCommandClassName
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      java.lang.String getEventIdentifier()
      Allow the entry action to return an eventIdentifier to start an automatic transition.
      void setBusinessFlowEventData(BusinessFlowEventData anEventData)
      The BusinessFlowEventListener will use this method to pass in all data the command needs.
      void setEntityId(java.lang.Long anEntityId)
      Allow UBF passes an entity Id to the entry action command.
      void setEntityObject(java.lang.Object anEntityObject)
      Allow UBF passes an entity object to the entry action command to avoid instantiating another instance of entity object.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.ibm.commerce.command.CacheableECCommand

        execute
      • Methods inherited from interface com.ibm.commerce.command.ECCommand

        checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
    • Field Detail

      • COPYRIGHT

        static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
      • NAME

        static final java.lang.String NAME
        The name of the Command Interface class.
        See Also:
        Constant Field Values
    • Method Detail

      • getEventIdentifier

        java.lang.String getEventIdentifier()
        Allow the entry action to return an eventIdentifier to start an automatic transition.
        Returns:
        The eventIdentifier for the automatic transition.
      • setBusinessFlowEventData

        void setBusinessFlowEventData(BusinessFlowEventData anEventData)
        The BusinessFlowEventListener will use this method to pass in all data the command needs. .
        Parameters:
        anEventData - The business flow event data which includes all information, including requestPropoerties, commandContext etc.
      • setEntityId

        void setEntityId(java.lang.Long anEntityId)
        Allow UBF passes an entity Id to the entry action command.
        Parameters:
        anEntityId - The entity Id.
      • setEntityObject

        void setEntityObject(java.lang.Object anEntityObject)
        Allow UBF passes an entity object to the entry action command to avoid instantiating another instance of entity object.
        Parameters:
        anEntityObject - The entity object.