atg.commerce.fulfillment.processor
Class ProcSwitchOnCommerceItemType
java.lang.Object
atg.commerce.fulfillment.processor.ProcSwitchOnCommerceItemType
- All Implemented Interfaces:
- PipelineProcessor
public class ProcSwitchOnCommerceItemType
- extends java.lang.Object
- implements PipelineProcessor
This processor returns 1 if the given CommerceItem is not a ConfigurableCommerceItem, 2
if it is.
Field Summary |
static java.lang.String |
CLASS_VERSION
Class version string |
Method Summary |
int[] |
getRetCodes()
Returns the valid return codes
1 - The processor completed |
int |
runProcess(java.lang.Object pParam,
PipelineResult pResult)
Determine if the CommerceItem is a ConfigurableCommerceItem or not. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLASS_VERSION
public static java.lang.String CLASS_VERSION
- Class version string
ProcSwitchOnCommerceItemType
public ProcSwitchOnCommerceItemType()
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
- Determine if the CommerceItem is a ConfigurableCommerceItem or not.
- Specified by:
runProcess
in interface PipelineProcessor
- Parameters:
pParam
- a HashMap which must contain an ShippingGroupCommerceItemRelationshippResult
- 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)