public class ProcessConsignmentPreFulfillmentAction extends AbstractAction<ConsignmentProcessModel>
ConsignmentModel to wait node, if more pre fulfillment steps are required, else move to sendConsignmentToExternalFulfillmentSystem step in ConsignmentProcessModel.| Modifier and Type | Class and Description |
|---|---|
protected static class |
ProcessConsignmentPreFulfillmentAction.Transition |
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
LAST_EXECUTED_STRATEGY |
modelService, processParameterHelperERROR_RETURN_CODE, RETRY_RETURN_CODE| Constructor and Description |
|---|
ProcessConsignmentPreFulfillmentAction() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanStrategyContextParam(ConsignmentProcessModel consignmentProcess)
Removes the strategy context param from
BusinessProcessModel.CONTEXTPARAMETERS(if any exists), before attempting to set a new param |
java.lang.String |
execute(ConsignmentProcessModel consignmentProcess)
Executes this
Action's business logic working on the given BusinessProcessModel. |
protected java.util.List<ConsignmentPreFulfillmentStrategy> |
getConsignmentPreFulfillmentStrategies(ConsignmentModel consignment)
Returns the list of
ConsignmentPreFulfillmentStrategy(s), that needs to be applied on the given ConsignmentModel |
protected ConsignmentPreFulfillmentStrategy |
getLastExecutedConsignmentPreFulfillmentStrategy(ConsignmentProcessModel consignmentProcess,
java.util.List<ConsignmentPreFulfillmentStrategy> consignmentPreFulfillmentStrategies)
Evaluates the last executed
ConsignmentPreFulfillmentStrategy for the given ConsignmentModel |
protected java.util.Map<java.lang.String,java.util.List<ConsignmentPreFulfillmentStrategy>> |
getPreFulfillmentStrategyRegistry() |
java.util.Set<java.lang.String> |
getTransitions()
Accesses all possible return codes of this
Action. |
protected boolean |
isTerminalStrategy(ConsignmentPreFulfillmentStrategy consignmentPreFulfillmentStrategy,
java.util.List<ConsignmentPreFulfillmentStrategy> consignmentPreFulfillmentStrategies)
Evaluates if the given
ConsignmentPreFulfillmentStrategy is last pre fulfillment strategy to be executed |
void |
setPreFulfillmentStrategyRegistry(java.util.Map<java.lang.String,java.util.List<ConsignmentPreFulfillmentStrategy>> preFulfillmentStrategyRegistry) |
protected void |
setStrategyInContextParam(ConsignmentPreFulfillmentStrategy consignmentPreFulfillmentStrategy,
ConsignmentProcessModel consignmentProcess)
Sets the current executed
ConsignmentPreFulfillmentStrategy in the context params of given ConsignmentProcessModel |
createTransitions, getModelService, getProcessParameterHelper, getProcessParameterValue, refresh, save, setModelService, setOrderStatus, setProcessParameterHelperclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCurrentActionDefinitionContextprotected static final java.lang.String LAST_EXECUTED_STRATEGY
public ProcessConsignmentPreFulfillmentAction()
public java.lang.String execute(ConsignmentProcessModel consignmentProcess)
ActionAction's business logic working on the given BusinessProcessModel.consignmentProcess - The process context to work on.protected java.util.List<ConsignmentPreFulfillmentStrategy> getConsignmentPreFulfillmentStrategies(ConsignmentModel consignment)
ConsignmentPreFulfillmentStrategy(s), that needs to be applied on the given ConsignmentModelconsignment - the ConsignmentModelConsignmentPreFulfillmentStrategy(s)protected ConsignmentPreFulfillmentStrategy getLastExecutedConsignmentPreFulfillmentStrategy(ConsignmentProcessModel consignmentProcess, java.util.List<ConsignmentPreFulfillmentStrategy> consignmentPreFulfillmentStrategies) throws java.lang.IllegalStateException
ConsignmentPreFulfillmentStrategy for the given ConsignmentModelconsignmentProcess - the ConsignmentProcessModelconsignmentPreFulfillmentStrategies - the list of ConsignmentPreFulfillmentStrategy(s) to choose fromConsignmentPreFulfillmentStrategy.
java.lang.IllegalStateException - if the last executed ConsignmentPreFulfillmentStrategy is invalidprotected void setStrategyInContextParam(ConsignmentPreFulfillmentStrategy consignmentPreFulfillmentStrategy, ConsignmentProcessModel consignmentProcess)
ConsignmentPreFulfillmentStrategy in the context params of given ConsignmentProcessModelconsignmentPreFulfillmentStrategy - the ConsignmentPreFulfillmentStrategyconsignmentProcess - the ConsignmentProcessModelprotected void cleanStrategyContextParam(ConsignmentProcessModel consignmentProcess)
BusinessProcessModel.CONTEXTPARAMETERS(if any exists), before attempting to set a new paramconsignmentProcess - the ConsignmentProcessModel for the consignment to be fulfilledprotected boolean isTerminalStrategy(ConsignmentPreFulfillmentStrategy consignmentPreFulfillmentStrategy, java.util.List<ConsignmentPreFulfillmentStrategy> consignmentPreFulfillmentStrategies)
ConsignmentPreFulfillmentStrategy is last pre fulfillment strategy to be executedconsignmentPreFulfillmentStrategy - the given ConsignmentPreFulfillmentStrategy to be checkedconsignmentPreFulfillmentStrategies - the given list of ConsignmentPreFulfillmentStrategy(s) to check againstpublic java.util.Set<java.lang.String> getTransitions()
ActionAction. This method is used by the process engine to validate a
process definition. Furthermore it can be used by (graphical) editors to access all return codes which have to mapped
in transitions.Actionprotected java.util.Map<java.lang.String,java.util.List<ConsignmentPreFulfillmentStrategy>> getPreFulfillmentStrategyRegistry()
public void setPreFulfillmentStrategyRegistry(java.util.Map<java.lang.String,java.util.List<ConsignmentPreFulfillmentStrategy>> preFulfillmentStrategyRegistry)
Copyright © 2018 SAP SE. All Rights Reserved.