Class CheckOrderAction
- java.lang.Object
-
- de.hybris.platform.processengine.action.AbstractAction<T>
-
- de.hybris.platform.processengine.action.AbstractSimpleDecisionAction<OrderProcessModel>
-
- de.hybris.platform.yacceleratorordermanagement.actions.order.CheckOrderAction
-
- All Implemented Interfaces:
Action<OrderProcessModel>
public class CheckOrderAction extends AbstractSimpleDecisionAction<OrderProcessModel>
This example action checks the order for required data in the business process. Skipping this action may result in failure in one of the subsequent steps of the process. The relation between the order and the business process is defined in basecommerce extension through item OrderProcess. Therefore if your business process has to access the order (a typical case), it is recommended to use the OrderProcess as a parentClass instead of the plain BusinessProcess.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.processengine.action.AbstractSimpleDecisionAction
AbstractSimpleDecisionAction.Transition
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.processengine.action.AbstractAction
modelService, processParameterHelper
-
Fields inherited from interface de.hybris.platform.processengine.spring.Action
ERROR_RETURN_CODE, RETRY_RETURN_CODE
-
-
Constructor Summary
Constructors Constructor Description CheckOrderAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractSimpleDecisionAction.Transition
executeAction(OrderProcessModel process)
Executes thisAction
's business logic working on the givenBusinessProcessModel
.protected CheckOrderService
getCheckOrderService()
void
setCheckOrderService(CheckOrderService checkOrderService)
-
Methods inherited from class de.hybris.platform.processengine.action.AbstractSimpleDecisionAction
execute, getTransitions
-
Methods inherited from class de.hybris.platform.processengine.action.AbstractAction
createTransitions, getModelService, getProcessParameterHelper, getProcessParameterValue, refresh, save, setModelService, setOrderStatus, setProcessParameterHelper
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.processengine.spring.Action
getCurrentActionDefinitionContext
-
-
-
-
Method Detail
-
executeAction
public AbstractSimpleDecisionAction.Transition executeAction(OrderProcessModel process)
Description copied from class:AbstractSimpleDecisionAction
Executes thisAction
's business logic working on the givenBusinessProcessModel
.- Specified by:
executeAction
in classAbstractSimpleDecisionAction<OrderProcessModel>
- Parameters:
process
- The process context to work on.- Returns:
- OK; NOK
-
getCheckOrderService
protected CheckOrderService getCheckOrderService()
-
setCheckOrderService
public void setCheckOrderService(CheckOrderService checkOrderService)
-
-