The refreshOrder pipeline chain reloads an Order from the repository. The Order object is supplied as a parameter. The refreshOrder pipeline chain is not executed explicitly, but rather by the Oracle ATG Web Commerce components. The pipeline chain’s transaction mode is TX_REQUIRED.

The following sections describe each processor in the pipeline chain.

loadOrderObjectForRefresh

This processor takes an existing Order object and reloads the properties from the repository into it. It also loads all the supporting objects, such as CommerceItem, ShippingGroup, etc.

Transactional Mode

TX_MANDATORY

Component

/atg/commerce/order/processor/LoadOrderObject

Object

atg.commerce.order.processor.ProcLoadOrderObject

Transitions

Return value of 1 will execute loadCommerceItemObjects next.

loadCommerceItemObjects

This processor constructs a new CommerceItem object for each item it loads and loads the properties from the repository into it. It then adds the object to the Order.

Transactional Mode

TX_MANDATORY

Component

/atg/commerce/order/processor/LoadCommerceItemObjects

Object

atg.commerce.order.processor.ProcLoadCommerceItemObjects

Transitions

Return value of 1 will execute loadShippingGroupObjects next.

loadShippingGroupObjects

This processor constructs a new ShippingGroup object for each item it loads and loads the properties from the repository into it. It then adds the object to the Order.

Transactional Mode

TX_MANDATORY

Component

/atg/commerce/order/processor/LoadShippingGroupObjects

Object

atg.commerce.order.processor.ProcLoadShippingGroupObjects

Transitions

Return value of 1 will execute loadHandlingInstructionsObjects next.

loadHandlingInstructionsObjects

This processor constructs a new HandlingInstruction object for each ShippingGroup that was loaded in the previous processor and loads the properties from the repository into it. It then adds the object to the ShippingGroup to which it belongs.

Transactional Mode

TX_MANDATORY

Component

/atg/commerce/order/processor/LoadHandlingInstructionObjects

Object

atg.commerce.order.processor.ProcLoadHandlingInstructionObjects

Transitions

Return value of 1 will execute loadPaymentGroupObjects next.

loadPaymentGroupObjects

This processor constructs a new PaymentGroup object for each item it loads and loads the properties from the repository into it. It then adds the object to the Order.

Transactional Mode

TX_MANDATORY

Component

/atg/commerce/order/processor/LoadPaymentGroupObjects

Object

atg.commerce.order.processor.ProcLoadPaymentGroupObjects

Transitions

Return value of 1 will execute loadCostCenterObjects next.

loadCostCenterObjects

Transactional Mode

TX_MANDATORY

Component

/atg/commerce/order/processor/LoadCostCenterObjects

Object

atg.commerce.order.processor.ProcCostCenterObjects

Transitions

Return value of 1 will execute loadPaymentStatusObjects next.

loadPaymentStatusObjects

This processor constructs a new PaymentStatus object for each PaymentGroup that was loaded in the previous processor and loads the properties from the repository into it. It then adds the object to the PaymentGroup to which it belongs.

Transactional Mode

TX_MANDATORY

Component

/atg/commerce/order/processor/LoadPaymentStatusObjects

Object

atg.commerce.order.processor.ProcLoadPaymentStatusObjects

Transitions

Return value of 1 will execute loadRelationshipObjects next.

loadRelationshipObjects

This processor constructs a new Relationship object for each item it loads and loads the properties from the repository into it. It then adds the object to the Order.

Transactional Mode

TX_MANDATORY

Component

/atg/commerce/order/processor/LoadRelationshipObjects

Object

atg.commerce.order.processor.ProcLoadRelationshipObjects

Transitions

Return value of 1 will execute loadPriceInfoObjects next.

loadPriceInfoObjects

This processor constructs a new OrderPriceInfo, TaxPriceInfo, ShippingPriceInfo, or ItemPriceInfo object for each item it loads and loads the properties from the repository into it. It then sets the PriceInfo to the corresponding object in the Order.

Transactional Mode

TX_MANDATORY

Component

/atg/commerce/order/processor/LoadPriceInfoObjects

Object

atg.commerce.order.processor.ProcLoadPriceInfoObjects

Transitions

Return value of 1 will execute setCatalogRefs next.

setCatalogRefs

This processor sets the catalogRef property in the auxiliaryData object in the CommerceItem. It does this by loading the RepositoryItem object using the catalogRefId in the auxiliaryData object. Additionally, if SetCatalogRefs.substituteRemovedSku is true, this processor replaces all deleted SKUs in the Order with the “dummy” SKU defined by SetCatalogRefs.substituteDeletedSkuId. For more information, see Refreshing Orders in the Configuring Purchase Process Services chapter.

Transactional Mode

TX_MANDATORY

Component

/atg/commerce/order/processor/SetCatalogRefs

Object

atg.commerce.order.processor.ProcSetCatalogRefs

Transitions

Return value of 1 will execute setProductRefs next.

setProductRefs

This processor sets the productRef property in the auxiliaryData object in the CommerceItem. It does this by loading the RepositoryItem object using the productId in the auxiliaryData object. Additionally, if SetProductRefs.substituteRemovedProduct is true, this processor replaces all deleted products in the Order with the “dummy” product defined by SetProductRefs.
substituteDeletedProductId
. For more information, see
Refreshing Orders in the Configuring Purchase Process Services chapter.

Transactional Mode

TX_MANDATORY

Component

/atg/commerce/order/processor/SetProductRefs

Object

atg.commerce.order.processor.ProcSetProductRefs

Transitions

Return value of 1 will execute removeExpiredCommerceItems next.

removeExpiredCommerceItems

Used in conjunction with SetCatalogRefs and SetProductRefs. If the state of the Order is one that is defined in RemoveExpiredCommerceItems.openOrderStates, this processor removes from the Order any CommerceItem that contains a “dummy” SKU or product that was substituted by SetCatalogRefs or SetProductRefs. A “dummy” SKU is automatically removed. A “dummy” product is removed only if RemoveExpiredCommerceItems.removeItemsWithDeletedProducts is set to true; the default is true. For more information, see Refreshing Orders in the Configuring Purchase Process Services chapter.

Transactional Mode

TX_MANDATORY

Component

/atg/commerce/order/processor/RemoveExpiredCommerceItems

Object

atg.commerce.order.processor.ProcRemoveExpiredCommerceItems

Transitions

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


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