The completeRemoveOrder
chain is executed when called by the updateShippingGroup
chain.
The following sections describe each processor in the pipeline chain.
creditOrder
Iterates through the payment groups in the order, and checks to see if each state is SETTLED. If it is, it calls the credit method of the PaymentGroupManager
with that payment group, then sets the status of the payment group to INITIAL. If the payment group is not SETTLED, it checks to see if the payment group represents a gift certificate, and if so, calls the expireGiftCertificateAuthorization
method of the PaymentGroupManager
to credit the gift certificate.
Transactional mode: TX_MANDATORY
Nucleus component: /atg/commerce/fulfillment/processor/CreditOrder
PipelineProcessor object: atg.commerce.pricing.processor.ProcSendScenarioEvent
Transitions: Return value of 1 executes the finishRemoveOrder processor.
finishRemoveOrder
Iterates through all commerce items and payment groups contained in the order, and sets their states to REMOVED. Also sets the order’s state to REMOVED.
Transactional mode: TX_MANDATORY
Nucleus component: /atg/commerce/fulfillment/processor/FinishRemoveOrder
PipelineProcessor 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.