public class VerifyConsignmentCompletionAction extends AbstractAction<ConsignmentProcessModel>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
VerifyConsignmentCompletionAction.Transition |
modelService, processParameterHelperERROR_RETURN_CODE, RETRY_RETURN_CODE| Constructor and Description |
|---|
VerifyConsignmentCompletionAction() |
createTransitions, getModelService, getProcessParameterHelper, getProcessParameterValue, refresh, save, setModelService, setOrderStatus, setProcessParameterHelperclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCurrentActionDefinitionContextpublic java.lang.String execute(ConsignmentProcessModel consignmentProcessModel) throws java.lang.Exception
ActionAction's business logic working on the given BusinessProcessModel.consignmentProcessModel - The process context to work on.java.lang.Exceptionprotected java.lang.String waitTransition(ConsignmentProcessModel consignmentProcess)
ConsignmentModel.STATUS to ConsignmentStatus.READY.
Also, it assigns a new taskAssignment WorkflowModel to the ConsignmentModel and puts the ConsignmentProcessModel in waiting state
consignmentProcess - the given ConsignmentProcessModelVerifyConsignmentCompletionAction.Transition.WAITprotected java.lang.String okTransition(ConsignmentProcessModel consignmentProcess)
ConsignmentModel.STATUS to ConsignmentStatus.CANCELLEDconsignmentProcess - the given ConsignmentProcessModelVerifyConsignmentCompletionAction.Transition.OKprotected void updateConsignmentStatus(ConsignmentProcessModel consignmentProcessModel, ConsignmentStatus status)
ConsignmentModel.STATUS to given ConsignmentStatusconsignmentProcessModel - the given ConsignmentProcessModelstatus - The ConsignmentStatus to be set on the ConsignmentModelpublic 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 WarehousingConsignmentWorkflowService getWarehousingConsignmentWorkflowService()
public void setWarehousingConsignmentWorkflowService(WarehousingConsignmentWorkflowService warehousingConsignmentWorkflowService)
Copyright © 2018 SAP SE. All Rights Reserved.