com.ibm.commerce.order.event

Class ProcessOrderSubmitEventCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, ProcessOrderSubmitEventCmd, 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
    Direct Known Subclasses:
    GiftCenterProcessOrderSubmitEventCmdImpl, SOIProcessOrderSubmitEventCmdImpl


    public class ProcessOrderSubmitEventCmdImpl
    extends com.ibm.commerce.order.event.AbstractProcessOrderSubmitEventCmdImpl
    implements ProcessOrderSubmitEventCmd
    This is the default implementation of the task command ProcessOrderSubmitEventCmd interface.

    Behavior:

    • Retrieves the transfer order event from the component configuration file under the configuration group/property TransferOrder/event.
    • If the transfer order event is OrderSubmit:
      • If the store's inventory system is DOM:
        • Calls AbstractProcessOrderSubmitEventCmdImpl.transferOrder() to transfer the order.
        • Calls #decrementInventoryCache() to decrement the inventory cache.
      • Calls {@link #setOrderTransferred()} to mark the order as processing.
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

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

        public static final java.lang.String RECURRING_ORDER_TYPE
        The order type for recurring order.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ProcessOrderSubmitEventCmdImpl

        public ProcessOrderSubmitEventCmdImpl()
    • Method Detail

      • reset

        public void reset()
        This method should be called after a command has been executed to reset its state variables.
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand
      • setOrderId

        public void setOrderId(java.lang.Long enOrderId)
        This method sets the order Id.
        Specified by:
        setOrderId in interface ProcessOrderSubmitEventCmd
        Parameters:
        enOrderId - The order id.