DoInventoryActionCmd task command
The DoInventoryActionCmd task command interfaces with all inventory operations.
Task command
com.ibm.commerce.inventory.commands.DoInventoryActionCmd
Implementation class
com.ibm.commerce.inventory.commands.DoInventoryActionCmdImpl
Possible callers
OrderItemAddCmdImpl
OrderItemUpdateCmdImpl
OrderItemDeleteCmdImpl
OrderItemDisplayCmdImpl
OrderItemMoveCmdImpl
PrepareOrderCmdImpl
OrderCalculateCmdImpl
OrderCancelCmdImpl
OrderProcessCmdImpl
PreprocessOrderCmdImpl
ProcessOrderCmdImpl
ReleaseOrdersToFulfillmentCOCmdImpl
ReleaseShortShipConfirmCmdImpl
Behavior
This is the base interface for the inventory component. This command handles the different inventory models so that the Order component only needs to call this task command with the required action and corresponding parameters specified. This command performs the low level tasks based on the current store's inventory system configuration.
switch(Action){
case GET_DEFAULT_ATP_PARAMETER:
build ATP parameter for different caller commands
(different commands have different default ATP parameters )
break;
case CHECK_INVENTORY:
check whether inventory is available
break;
case RESOLVE_FULFILLMENTCENTER:
resolve the right fulfillment center
break;
case UPDATE_FULFILLMENTCENTER:
update the fulfillment center
break;
case ALLOCATE_INVENTORY:
allocate inventory
break;
case REVERSE_INVENTORY:
reverse inventory for those items that are canceled/deleted
break;
case GET_ESTIMATE_AVAILABILITY_DATE:
get estimated availability date
break;
case RESERVE_INVENTORY:
create a reservation of a requested quantity of inventory for a given item,
fulfillment center and store.
break;
case ADJUST_RESERVE_INVENTORY:
adjust the inventory for a given inventory reservation by the amount of the given quantity
break;
case GET_INVENTORYCATALOG:
return inventory quantity
break;
case SHIP_ITEMS:
ship the items for the order
break;
default: {
doMoreAction(); (a protected method that can be customized to add new inventory actions
in this facades)
break;
}
}