public class ProcDeliverElectronicGoodByListener extends java.lang.Object implements PipelineProcessor
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
STOP_CHAIN_EXECUTION, STOP_CHAIN_EXECUTION_AND_COMMIT, STOP_CHAIN_EXECUTION_AND_ROLLBACK
Constructor and Description |
---|
ProcDeliverElectronicGoodByListener() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
createEmailMessageBody(ElectronicFulfiller of,
java.lang.String pClaimCode)
Creates the email message body that will be put into the email.
|
protected EmailEvent |
createEmailObject(ElectronicFulfiller of,
java.lang.String pRecipientEmailAddress,
java.lang.String pClaimCode)
This method will create an EmailEvent that corresponds to the
message to send out.
|
int[] |
getRetCodes()
Returns the valid return codes
1 - The processor completed
|
int |
runProcess(java.lang.Object pParam,
PipelineResult pResult)
Delivers an electronic item by the email Listener.
|
public int[] getRetCodes()
getRetCodes
in interface PipelineProcessor
public int runProcess(java.lang.Object pParam, PipelineResult pResult) throws java.lang.Exception
runProcess
in interface PipelineProcessor
pParam
- a HashMap which must contain an OrderFulfiller objectpResult
- a PipelineResult object which stores any information which must
be returned from this method invokationjava.lang.Exception
- throws any exception back to the callerPipelineProcessor.runProcess(Object, PipelineResult)
protected EmailEvent createEmailObject(ElectronicFulfiller of, java.lang.String pRecipientEmailAddress, java.lang.String pClaimCode)
pRecipientEmailAddress
- email address that this email will be sent topClaimCode
- code to claim something from the ClaimableRepositoryprotected java.lang.String createEmailMessageBody(ElectronicFulfiller of, java.lang.String pClaimCode)
pClaimCode
- code that is used to claim things from the ClaimbleRepository