public class ProcHandleModificationClassType extends GenericService implements PipelineProcessor
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
SERVICE_INFO_KEY
STOP_CHAIN_EXECUTION, STOP_CHAIN_EXECUTION_AND_COMMIT, STOP_CHAIN_EXECUTION_AND_ROLLBACK
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
ProcHandleModificationClassType() |
Modifier and Type | Method and Description |
---|---|
java.util.Properties |
getChainToRunMap() |
InventoryManager |
getInventoryManager()
The InventoryManager that is notified when inventory is updated
|
int[] |
getRetCodes()
Returns the valid return codes
1 - The processor completed
2 - The modification is not supported
|
protected void |
handleIdTargetModification(java.lang.String chainToRun,
FulfillerSystem of,
java.util.HashMap pMap)
Handles a modification of the IdTargetModification class type from both the ModifyOrder
and ModifyOrderNotification messages
|
protected void |
handlePayGroupUpdateModification(java.lang.String chainToRun,
FulfillerSystem of,
java.util.HashMap pMap)
Handles a modification of the PaymentGroupUpdate type from the ModifyOrderNotification message
|
protected void |
handleShipGroupUpdateModification(java.lang.String chainToRun,
FulfillerSystem of,
java.util.HashMap pMap)
Handles a modification of the ShippingGroupUpdate type from the ModifyOrderNotification message
|
boolean |
isUpdateInventoryOnCancelOrder()
If this is true, then cancel an order whose inventory has already been allocated
will result in a call to InventoryManager.inventoryWasUpdated
This defaults to true
|
int |
runProcess(java.lang.Object pParam,
PipelineResult pResult)
This processor will route the order modification execution based on the modification class type
Works for both ModifyOrder and ModifyOrderNotification JMS messages
This method requires that a Commerce message and OrderFulfiller object be supplied
in pParam in a HashMap.
|
void |
setChainToRunMap(java.util.Properties pChainToRunMap) |
void |
setInventoryManager(InventoryManager pInventoryManager) |
void |
setUpdateInventoryOnCancelOrder(boolean pUpdateInventoryOnCancelOrder) |
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public void setUpdateInventoryOnCancelOrder(boolean pUpdateInventoryOnCancelOrder)
public boolean isUpdateInventoryOnCancelOrder()
public void setInventoryManager(InventoryManager pInventoryManager)
public InventoryManager getInventoryManager()
public void setChainToRunMap(java.util.Properties pChainToRunMap)
public java.util.Properties getChainToRunMap()
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 a Commerce message 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 void handleIdTargetModification(java.lang.String chainToRun, FulfillerSystem of, java.util.HashMap pMap) throws java.lang.Exception
java.lang.Exception
protected void handleShipGroupUpdateModification(java.lang.String chainToRun, FulfillerSystem of, java.util.HashMap pMap) throws java.lang.Exception
java.lang.Exception
protected void handlePayGroupUpdateModification(java.lang.String chainToRun, FulfillerSystem of, java.util.HashMap pMap) throws java.lang.Exception
java.lang.Exception