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

/atg/commerce/fulfillment/processor/
  HandleItemRelationshipState

Object

atg.commerce.pricing.processor.ProcSendScenarioEvent

Transitions

Return value of 1 executes the purchaseItem processor. Return value of 2 executes the purchaseItemOffPreOrder processor. Return value of 3 executes the purchaseItemOffBackOrder processor.

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

/atg/commerce/fulfillment/processor/PurchaseItem

Object

atg.commerce.pricing.processor.ProcSendScenarioEvent

Transitions

None. This is the last link in the chain and causes the PipelineManager to return to the caller.

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

/atg/commerce/fulfillment/processor/PurchaseItemOffPreOrder

Object

atg.commerce.pricing.processor.ProcSendScenarioEvent

Transitions

None. This is the last link in the chain and causes the PipelineManager to return to the caller.

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

/atg/commerce/fulfillment/processor/PurchaseItemOffBackOrder

Object

atg.commerce.pricing.processor.ProcSendScenarioEvent

Transitions

None. This is the last link in the chain and causes the PipelineManager to return to the caller.


Copyright © 1997, 2013 Oracle and/or its affiliates. All rights reserved. Legal Notices