atg.commerce.fulfillment.processor
Class ProcHandleNewType

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

public class ProcHandleNewType
extends java.lang.Object
implements PipelineProcessor

This method is called to handle all messages other than the other handle methods.


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
ProcHandleNewType()
           
 
Method Summary
 int[] getRetCodes()
          Returns the valid return codes 1 - The processor completed
 int runProcess(java.lang.Object pParam, PipelineResult pResult)
          This method is called to handle all messages other than the other handle methods.
 
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

ProcHandleNewType

public ProcHandleNewType()
Method Detail

getRetCodes

public int[] getRetCodes()
Returns the valid return codes 1 - The processor completed

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 is called to handle all messages other than the other handle methods. The default implementation leaves this method empty. Should new method types be added, this method can be overridden and the handling of the message can be done within. Note that no extra work for locking needs to happen

Specified by:
runProcess in interface PipelineProcessor
Parameters:
pParam - a HashMap which must contain a JMS message and OrderFulfiller 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)