Class AbstractB2BApproveOrderDecisionAction
java.lang.Object
de.hybris.platform.processengine.action.AbstractAction
de.hybris.platform.b2b.process.approval.actions.AbstractB2BApproveOrderDecisionAction
- All Implemented Interfaces:
Action
- Direct Known Subclasses:
CheckForApproval,PerformMerchantCheck
-
Nested Class Summary
Nested Classes -
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 TypeMethodDescriptionfinal Stringexecute(BusinessProcessModel process) Executes thisAction's business logic working on the givenBusinessProcessModel.executeAction(B2BApprovalProcessModel process) Execute an action of a B2B approval processexecuteAction(BusinessProcessModel process) Retrieves the order object from the processAccesses all possible return codes of thisAction.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
-
AbstractB2BApproveOrderDecisionAction
public AbstractB2BApproveOrderDecisionAction()
-
-
Method Details
-
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
-
execute
Description copied from interface:ActionExecutes thisAction's business logic working on the givenBusinessProcessModel.- Parameters:
process- 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:
ExceptionRetryLaterException
-
executeAction
public AbstractB2BApproveOrderDecisionAction.Transition executeAction(BusinessProcessModel process) throws RetryLaterException, Exception - Throws:
RetryLaterExceptionException
-
executeAction
public abstract AbstractB2BApproveOrderDecisionAction.Transition executeAction(B2BApprovalProcessModel process) throws RetryLaterException, Exception Execute an action of a B2B approval process- Parameters:
process- the b2b approval process- Returns:
- the transition OK, NOK.
- Throws:
RetryLaterException- Triggers the action to be processes again.Exception- Any error has occurred.
-
getOrderForProcess
Retrieves the order object from the process- Parameters:
process- The business process- Returns:
- An order model refreshed from database.
-