Class VerifyConsignmentCompletionAction
java.lang.Object
de.hybris.platform.processengine.action.AbstractAction<ConsignmentProcessModel>
de.hybris.platform.yacceleratorordermanagement.actions.consignment.VerifyConsignmentCompletionAction
- All Implemented Interfaces:
Action<ConsignmentProcessModel>
Checks the state of the consignment to performStrategy changes (e.g., setting the consignment status) according to the
consignment's state changes resulted from the actions performed on it.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static enum -
Field Summary
Fields inherited from class de.hybris.platform.processengine.action.AbstractAction
modelService, processParameterHelperFields inherited from interface de.hybris.platform.processengine.spring.Action
ERROR_RETURN_CODE, RETRY_RETURN_CODE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(ConsignmentProcessModel consignmentProcessModel) Executes thisAction's business logic working on the givenBusinessProcessModel.Accesses all possible return codes of thisAction.protected WarehousingConsignmentWorkflowServiceprotected StringokTransition(ConsignmentProcessModel consignmentProcess) Updates theConsignmentModel.STATUStoConsignmentStatus.CANCELLEDvoidsetWarehousingConsignmentWorkflowService(WarehousingConsignmentWorkflowService warehousingConsignmentWorkflowService) protected voidupdateConsignmentStatus(ConsignmentProcessModel consignmentProcessModel, ConsignmentStatus status) Updates theConsignmentModel.STATUSto givenConsignmentStatusprotected StringwaitTransition(ConsignmentProcessModel consignmentProcess) Updates theConsignmentModel.STATUStoConsignmentStatus.READY.Methods inherited from class de.hybris.platform.processengine.action.AbstractAction
createTransitions, getModelService, getProcessParameterHelper, getProcessParameterValue, refresh, save, setModelService, setOrderStatus, setProcessParameterHelperMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.processengine.spring.Action
getCurrentActionDefinitionContext
-
Constructor Details
-
VerifyConsignmentCompletionAction
public VerifyConsignmentCompletionAction()
-
-
Method Details
-
execute
Description copied from interface:ActionExecutes thisAction's business logic working on the givenBusinessProcessModel.- Parameters:
consignmentProcessModel- The process context to work on.- Returns:
- the return code as stated in the process definition. This code is used by the process engine to determine the next actions.
- Throws:
Exception
-
waitTransition
Updates theConsignmentModel.STATUStoConsignmentStatus.READY.Also, it assigns a new taskAssignment
WorkflowModelto theConsignmentModeland puts theConsignmentProcessModelin waiting state- Parameters:
consignmentProcess- the givenConsignmentProcessModel- Returns:
- the
VerifyConsignmentCompletionAction.Transition.WAIT
-
okTransition
Updates theConsignmentModel.STATUStoConsignmentStatus.CANCELLED- Parameters:
consignmentProcess- the givenConsignmentProcessModel- Returns:
- the
VerifyConsignmentCompletionAction.Transition.OK
-
updateConsignmentStatus
protected void updateConsignmentStatus(ConsignmentProcessModel consignmentProcessModel, ConsignmentStatus status) Updates theConsignmentModel.STATUSto givenConsignmentStatus- Parameters:
consignmentProcessModel- the givenConsignmentProcessModelstatus- TheConsignmentStatusto be set on theConsignmentModel
-
getTransitions
Description copied from interface:ActionAccesses all possible return codes of thisAction. 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.- Returns:
- all possible return codes of this
Action
-
getWarehousingConsignmentWorkflowService
-
setWarehousingConsignmentWorkflowService
public void setWarehousingConsignmentWorkflowService(WarehousingConsignmentWorkflowService warehousingConsignmentWorkflowService)
-