public class ProcSplitShippingGroupForAvailableItems 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 |
|---|
ProcSplitShippingGroupForAvailableItems() |
| Modifier and Type | Method and Description |
|---|---|
int[] |
getRetCodes()
Returns the valid return codes
1 - The processor completed
|
int |
runProcess(java.lang.Object pParam,
PipelineResult pResult)
Split the shipping group into two shipping groups, one with items PENDING_DELIVERY
and one with items that aren't PENDING_DELIVERY
|
protected java.util.List |
splitShippingGroupWithAvailableItems(HardgoodFulfiller of,
Order pOrder,
ShippingGroup pShippingGroup,
java.util.List pModificationList)
Split the shipping group into two shipping groups, one with items PENDING_DELIVERY
and one with items that aren't PENDING_DELIVERY
|
public static final java.lang.String CLASS_VERSION
public ProcSplitShippingGroupForAvailableItems()
public int[] getRetCodes()
getRetCodes in interface PipelineProcessorpublic int runProcess(java.lang.Object pParam,
PipelineResult pResult)
throws java.lang.Exception
runProcess in interface PipelineProcessorpParam - a HashMap which must contain an Order, ShippingGroup and 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 java.util.List splitShippingGroupWithAvailableItems(HardgoodFulfiller of, Order pOrder, ShippingGroup pShippingGroup, java.util.List pModificationList) throws InvalidParameterException, ObjectCreationException, DuplicateShippingGroupException, CommerceException
pOrder - The order containing the shippingGrouppShippingGroup - The shipping group to splitpModificationList - A place to store all new modificationsInvalidParameterExceptionatg.commerce.ObjectCreationExceptionDuplicateShippingGroupExceptionCommerceExceptionObjectCreationException