The applySelectedItems pipeline chain processes the selected ReturnItems for the return. Selected items are those whose quantityToReturn property is greater than 0. The pipeline chain’s transaction mode is TX_REQUIRED.

The following section describes the processor in the pipeline chain.

validateSelectedItems

This processor validates that there are ReturnItems with valid return quantities.

Transactional Mode

TX_MANDATORY

Component

/atg/commerce/custsvc/returns/processor/ValidateSelectedItems

Object

atg.commerce.csr.returns.processor.
  ProcValidateSelectedItems

Transitions

If the processor returns 1, call the createReturnItemList processor.

createReturnItemList

This processor regenerates the ReturnItemList.

Transactional Mode

TX_MANDATORY

Component

/atg/commerce/custsvc/returns/processor/CreateReturnItemList

Object

atg.commerce.csr.returns.processor.ProcCreateReturnItemList

Transitions

If the processor returns 1, call the initReturnCalculationOrder processor.

initReturnCalculationOrder

This processor creates a new Return Calculation Order.

Transactional Mode

TX_MANDATORY

Component

/atg/commerce/custsvc/returns/processor/InitReturnCalculationOrder

Object

atg.commerce.csr.returns.processor.ProcInitReturnCalculationOrder

Transitions

If the processor returns 1, call the resetGWPMetaData processor.

resetGWPMetaData

This processor resets the properties that contain Gift With Purchase meta-data that is needed to generate give selections for the replacement order when gifts are being returned during an exchange. This processor also regenerates GWP meta-data on the replacement order.

Transactional Mode

TX_MANDATORY

Component

/atg/commerce/custsvc/returns/processor/ResetGWPMetaData

Object

atg.commerce.csr.returns.processor.ProcResetGWPMetaData

Transitions

If the processor returns 1, call the calculateNewAmounts processor.

calculateNewAmounts

This processor calculates new suggested refund and actual refund amounts, as well as promotion value adjustments.

Transactional Mode

TX_MANDATORY

Component

/atg/commerce/custsvc/returns/processor/CalculateNewAmounts

Object

atg.commerce.csr.returns.processor.ProcCalculateNewAmounts

Transitions

If the processor returns 1, call the validateRefundTotalOnSelect processor.

validateRefundTotalOnSelect

This processor validates the refund total if the return has a refund greater than 0.

Transactional Mode

TX_MANDATORY

Component

/atg/commerce/custsvc/returns/processor/ValidateRefundTotalForReturn

Object

atg.commerce.csr.returns.processor.ProcValidateRefundForReturn

Transitions

If the processor returns 1, call the initRefundMethods processor.

initRefundMethods

This processor initializes the refund methods, and if the return is an exchange, the generated store credits used for the replacement order.

Transactional Mode

TX_MANDATORY

Component

/atg/commerce/custsvc/returns/processor/InitRefundMethods

Object

atg.commerce.csr.returns.processor.ProcInitializeRefundMethods

Transitions

If the processor returns 1, call the updateStoreCreditAllocationsOnSelect processor.

updateStoreCreditAllocationsOnSelect

This processor updates the refund store credits based on the refund method allocations.

Transactional Mode

TX_MANDATORY

Component

/atg/commerce/custsvc/returns/processor/UpdateStoreCreditAllocations

Object

atg.commerce.csr.returns.processor.ProcUpdateStoreCreditAllocations

Transitions

None, this is the last link in the chain and will cause the PipelineManager to return to the caller.


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