Class CheckForApproval
- java.lang.Object
-
- de.hybris.platform.processengine.action.AbstractAction
-
- de.hybris.platform.b2b.process.approval.actions.AbstractB2BApproveOrderDecisionAction
-
- de.hybris.platform.b2b.process.approval.actions.CheckForApproval
-
- All Implemented Interfaces:
Action
public class CheckForApproval extends AbstractB2BApproveOrderDecisionAction
Checks if the order requires an approver.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.b2b.process.approval.actions.AbstractB2BApproveOrderDecisionAction
AbstractB2BApproveOrderDecisionAction.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 CheckForApproval()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractB2BApproveOrderDecisionAction.Transition
executeAction(B2BApprovalProcessModel process)
Execute an action of a B2B approval processB2BCommentService<AbstractOrderModel>
getB2bCommentService()
DefaultB2BPermissionService
getB2bPermissionService()
void
handleError(OrderModel order, java.lang.Exception e)
void
setB2bCommentService(B2BCommentService<AbstractOrderModel> b2bCommentService)
void
setB2bPermissionService(DefaultB2BPermissionService b2bPermissionService)
-
Methods inherited from class de.hybris.platform.b2b.process.approval.actions.AbstractB2BApproveOrderDecisionAction
execute, executeAction, getOrderForProcess, 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 AbstractB2BApproveOrderDecisionAction.Transition executeAction(B2BApprovalProcessModel process) throws RetryLaterException, java.lang.Exception
Description copied from class:AbstractB2BApproveOrderDecisionAction
Execute an action of a B2B approval process- Specified by:
executeAction
in classAbstractB2BApproveOrderDecisionAction
- Parameters:
process
- the b2b approval process- Returns:
- the transition OK, NOK.
- Throws:
RetryLaterException
- Triggers the action to be processes again.java.lang.Exception
- Any error has occurred.
-
handleError
public void handleError(OrderModel order, java.lang.Exception e)
-
getB2bPermissionService
public DefaultB2BPermissionService getB2bPermissionService()
-
setB2bPermissionService
public void setB2bPermissionService(DefaultB2BPermissionService b2bPermissionService)
-
getB2bCommentService
public B2BCommentService<AbstractOrderModel> getB2bCommentService()
-
setB2bCommentService
public void setB2bCommentService(B2BCommentService<AbstractOrderModel> b2bCommentService)
-
-