The allocateItemRelQuantity
chain is executed when called by the allocateItemRelationship
chain.
The following sections describe each processor in the pipeline chain.
handleItemRelationshipState
This processor checks the current state of the ShippingGroupCommerceItem
relationship. If it is BACK_ORDERED, control passes to purchaseItemOffBackOrder
. If it is PRE_ORDERED, control passes to purchaseItemOffPreOrder
. Otherwise, control passes to purchaseItem
.
Transactional Mode | TX_MANDATORY |
Component |
|
Object |
|
Transitions | Return value of 1 executes the |
purchaseItem
This processor calls the purchase method of the InventoryManager
. Depending on the result of the purchase, the state of the relationship is set accordingly. Execution of this chain then stops.
Transactional Mode | TX_MANDATORY |
Component |
|
Object |
|
Transitions | None. This is the last link in the chain and causes the |
purchaseItemOffPreOrder
This processor calls the purchaseOffPreorder
method of the InventoryManager
. Depending on the result of the purchase, the state of the relationship is set accordingly. Execution of this chain then stops.
Transactional Mode | TX_MANDATORY |
Component |
|
Object |
|
Transitions | None. This is the last link in the chain and causes the |
purchaseItemOffBackOrder
This processor calls the purchaseOffBackorder
method of the InventoryManager
. Depending on the result of the purchase, the state of the relationship is set accordingly. Execution of this chain then stops.
Transactional Mode | TX_MANDATORY |
Component |
|
Object |
|
Transitions | None. This is the last link in the chain and causes the |