public class ProcSplitShippingGroupsForFulfillment 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 |
---|
ProcSplitShippingGroupsForFulfillment() |
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)
This processor splits the shipping groups passed in the order if the shipping groups
are to be fulfilled by more than one fulfiller
This method requires that an Order and OrderFulfiller object be supplied
in pParam in a HashMap.
|
protected java.util.List |
splitShippingGroups(OrderFulfiller of,
Order pOrder,
java.util.List pShippingGroupsToBeSplit,
java.util.List pModificationList)
This method will split the shipping groups specified by whatever business logic is
required.
|
public ProcSplitShippingGroupsForFulfillment()
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 Order 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 splitShippingGroups(OrderFulfiller of, Order pOrder, java.util.List pShippingGroupsToBeSplit, java.util.List pModificationList) throws CommerceException
pOrder
- the order which contains the shipping groups to be splitpShippingGroupsToBeSplit
- the List of @see ShippingGroup objects that need to be splitCommerceException
OrderFulfillmentTools.splitShippingGroupsByFulfiller(atg.commerce.order.Order, java.util.List, java.util.List)