com.ibm.commerce.fulfillment.commands

Class AllocateExpectedInventoryCmdImpl

    • Field Detail

      • COPYRIGHT

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

        public static final java.lang.String ERR_CANNOT_BACKORDER
        Error Code if can not back order
        See Also:
        Constant Field Values
    • Constructor Detail

      • AllocateExpectedInventoryCmdImpl

        public AllocateExpectedInventoryCmdImpl()
    • Method Detail

      • getFulfillmentCenters

        public java.util.Vector getFulfillmentCenters()
        Deprecated. This method will be changed to protected
        Gets the prioritized list of fulfillment centers from which the inventory should be backordered.
        Returns:
        the prioritized list of fulfillment center identifiers (Vector of Integer).
      • getOrderItem

        public OrderItemAccessBean getOrderItem()
        Deprecated. This method will be changed to protected.
        Gets the order item for which expected inventory is to be allocated.
        Returns:
        the order item.
      • performExecute

        public void performExecute()
                            throws ECException
        Performs the actual business logic of the command.

        Behaviour
        1. If the order item is suitable for backordering (that is, its inventoryStatus attribute specifies unallocated). Then it is backordered at one of the fulfillment centers that provide the earliest expected availability time. The order item is updated to reflect the backorder.
        2. Otherwise, the order item is not changed.

        Note: the defaultBackorderOffset Store attribute specifies that a Store always expects more inventory to become available within the specified number of seconds. In this default implementation of the AllocateExpectedInventory task command, expected inventory can be allocated directly from Expected Inventory Records (in the RA and RADETAIL database tables). Or expected inventory can be allocated based on the expectation represented by the defaultBackorderOffset Store attribute. When more than one fulfillment center can provide the earliest expected availability time, preference is given to those allocating inventory directly from Expected Inventory Records.

        This default implementation of the AllocateExpectedInventory task command calls the backorderitem database stored procedure.

        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException
      • setFulfillmentCenters

        public void setFulfillmentCenters(java.util.Vector newFulfillmentCenters)
        Sets a prioritized list of fulfillment centers from which the inventory should be backordered.
        Specified by:
        setFulfillmentCenters in interface AllocateExpectedInventoryCmd
        Parameters:
        newFulfillmentCenters - a prioritized list of fulfillment center identifiers (Vector of Integer).