The allocateElectronicGood
chain is executed when called by the processElectronicShippingGroup
chain.
The following sections describe each processor in the pipeline chain.
createElectronicGood
This processor creates a gift certificate by using the createClaimableGiftCertificate
method of ClaimableManager
.
Transactional mode: TX_MANDATORY
Nucleus component: /atg/commerce/fulfillment/processor/CreateElectronicGood
PipelineProcessor object: atg.commerce.pricing.processor.ProcSendScenarioEvent
Transitions: Return value of 1 executes the handleElectronicSenderType processor.
handleElectronicSenderType
This processor determines how the electronic good is to be delivered by checking useTemplateEmailSender
property of ElectronicFulfiller
. If it is true, control passes to deliverElectronicGoodByTemplate
. Otherwise, control passes to deliverElectronicGoodByListener
.
Transactional mode: TX_MANDATORY
Nucleus component: /atg/commerce/fulfillment/processor/HandleElectronicSenderType
PipelineProcessor object: atg.commerce.pricing.processor.ProcSendScenarioEvent
Transitions: Return value of 1 executes the deliverElectronicGoodByTemplate processor. Return value of 2 executes the deliverElectronicGoodByListener processor
deliverElectronicGoodByTemplate
This processor sends the electronic good out via e-mail using the GiftCertificateEmailTemplate
of the OrderFulfiller
. Execution of this chain then stops.
Transactional mode: TX_MANDATORY
Nucleus component: /atg/commerce/fulfillment/processor/DeliverElectronicGoodByTemplate
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.
deliverElectronicGoodByListener
This processor delivers the electronic good out via e-mail using EmailListener
property of the OrderFulfiller
. Execution of this chain then stops.
Transactional mode: TX_MANDATORY
Nucleus component: /atg/commerce/fulfillment/processor/DeliverElectronicGoodByListener
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.