atg.commerce.fulfillment.processor
Class ProcHandleMessageType

java.lang.Object
  extended by atg.commerce.fulfillment.processor.ProcHandleMessageType
All Implemented Interfaces:
PipelineProcessor

public class ProcHandleMessageType
extends java.lang.Object
implements PipelineProcessor

This processor determines the message type received by the Fulfiller router and calls to multiple chains to process the message


Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Fields inherited from interface atg.service.pipeline.PipelineProcessor
STOP_CHAIN_EXECUTION, STOP_CHAIN_EXECUTION_AND_COMMIT, STOP_CHAIN_EXECUTION_AND_ROLLBACK
 
Constructor Summary
ProcHandleMessageType()
           
 
Method Summary
 int[] getRetCodes()
          Returns the valid return codes 1 - The call to handle SubmitOrder message chain 2 - The call to handle ModifyOrder message chain 3 - The call to handle ModifyOrderNotification message chain 4 - The call to handle any other message type
 int runProcess(java.lang.Object pParam, PipelineResult pResult)
          This method calls updateOrder() on the supplied Order and then checks to see if it is transient.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string

Constructor Detail

ProcHandleMessageType

public ProcHandleMessageType()
Method Detail

getRetCodes

public int[] getRetCodes()
Returns the valid return codes 1 - The call to handle SubmitOrder message chain 2 - The call to handle ModifyOrder message chain 3 - The call to handle ModifyOrderNotification message chain 4 - The call to handle any other message type

Specified by:
getRetCodes in interface PipelineProcessor
Returns:
an integer array of the valid return codes.

runProcess

public int runProcess(java.lang.Object pParam,
                      PipelineResult pResult)
               throws java.lang.Exception
This method calls updateOrder() on the supplied Order and then checks to see if it is transient. If it is transient then addOrder() is called in the OrderManager to make the Order persistent. This method requires that an Order and OrderManager object be supplied in pParam in a HashMap. Use the PipelineConstants class' static members to key the objects in the HashMap.

Specified by:
runProcess in interface PipelineProcessor
Parameters:
pParam - a HashMap which must contain an Order and OrderManager object
pResult - a PipelineResult object which stores any information which must be returned from this method invokation
Returns:
an integer specifying the processor's return code
Throws:
java.lang.Exception - throws any exception back to the caller
See Also:
PipelineProcessor.runProcess(Object, PipelineResult), OrderManager.addOrder(Order), OrderManager.updateOrder(Order)