ProcessBackorders
The ProcessBackorders controller command is invoked by the WebSphere Commerce Scheduler. It attempts to allocate inventory to backordered items for a given store.
Environment variable name Description storeID The store on which the command runs.
Behavior
- For the given store, get the list of locked orders that have a major status of PRC in the WebSphere Commerce Payments primary return codes table and an INVENTORYSTATUS of BO in the
ORDERITEMS table.- For each of these orders:
- See if there are any order items that are not validly allocated. (An order item is validly allocated if it is allocated, the quantity, fulfillment center, and shipping address are the same as when it was allocated, and the allocation has not yet expired.)
- If there is at least 1 order item that is not validly allocated, call
AllocateInventoryCmd for the order.- If an item is allocated from a different fulfillment center than the one originally requested and AllocateInventoryCmd has unlocked the order, then call
ReprepareOrderCmd to re-calculate shipping charges and taxes.- Call
ProcessOrderCmd .
We recommend that you schedule this command to be run when there is light user traffic and before the RAReallocate command. The recommended interval is 43200 seconds, and the recommended priority is 8.
Related concepts