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 upon which the command runs. |
Behavior
For the given store, get the list of locked orders with status = 'B'. For each of these orders:
- See if there are any OrderItems that are not 'validly' allocated. (An OrderItem 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 OrderItem 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.