Class TmaCheckApprovalFromOrganizationAction
java.lang.Object
de.hybris.platform.processengine.action.AbstractAction<OrderProcessModel>
de.hybris.platform.b2btelcofulfilmentprocess.actions.order.b2b.TmaCheckApprovalFromOrganizationAction
- All Implemented Interfaces:
de.hybris.platform.processengine.spring.Action<OrderProcessModel>
public class TmaCheckApprovalFromOrganizationAction
extends de.hybris.platform.processengine.action.AbstractAction<OrderProcessModel>
Action responsible for checking if the order has been approved by the organization approver.
- Since:
- 2105
-
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(OrderProcessModel process) Checks if the order has been approved/rejected by the organization approver.protected booleanrequiresApproval(OrderModel order) Checks if the provided order requires approval from organization approver.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
-
TmaCheckApprovalFromOrganizationAction
public TmaCheckApprovalFromOrganizationAction()
-
-
Method Details
-
execute
Checks if the order has been approved/rejected by the organization approver.- Parameters:
process- The order process- Returns:
- OK if the order has been approved, NOK if the order has been rejected or NO_ANSWER if it is waiting for the approver's decision
-
requiresApproval
Checks if the provided order requires approval from organization approver.- Parameters:
order- The order- Returns:
- True if the order requires approval, otherwise false.
-
getTransitions
-