The completeOrder chain is executed when called by the updateShippingGroup chain.

The following sections describe each processor in the pipeline chain.

settleOrder

Checks to see if all shipping groups have shipped, or if one shipping group has shipped and the SettleOnFirstShipment property of the OrderFulfiller is true. If not, then chain execution stops. Otherwise, it iterates through the Order’s payment groups and calls the debit method of the PaymentGroupManager on all of them. If the debit fails for a payment group, the payment group’s state is set to SETTLE_FAILED, and the order’s state is set to PENDING_MERCHANT_ACTION. If the debit succeeds, the payment group’s state is set to SETTLED.

Transactional Mode

TX_MANDATORY

Component

/atg/commerce/fulfillment/processor/SettleOrder

Object

atg.commerce.pricing.processor.ProcSendScenarioEvent

Transitions

Return value of 1 executes the finishOrder processor.

finishOrder

Sets the order’s state to NO_PENDING_ACTION and adds the modification to the modification list.

Transactional Mode

TX_MANDATORY

Component

/atg/commerce/fulfillment/processor/FinishOrder

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