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
    Modifier and Type
    Class
    Description
    static enum 
     
  • 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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final String
    Checks if the order has been approved/rejected by the organization approver.
     
    protected boolean
    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, 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
  • Constructor Details

    • TmaCheckApprovalFromOrganizationAction

      public TmaCheckApprovalFromOrganizationAction()
  • Method Details

    • execute

      public final String execute(OrderProcessModel process)
      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

      protected boolean requiresApproval(OrderModel order)
      Checks if the provided order requires approval from organization approver.
      Parameters:
      order - The order
      Returns:
      True if the order requires approval, otherwise false.
    • getTransitions

      public Set<String> getTransitions()