Class AbstractB2BApproveOrderDecisionAction

    • Constructor Detail

      • AbstractB2BApproveOrderDecisionAction

        public AbstractB2BApproveOrderDecisionAction()
    • Method Detail

      • getTransitions

        public java.util.Set<java.lang.String> getTransitions()
        Description copied from interface: Action
        Accesses all possible return codes of this Action. 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

        public final java.lang.String execute​(BusinessProcessModel process)
                                       throws RetryLaterException,
                                              java.lang.Exception
        Description copied from interface: Action
        Executes this Action's business logic working on the given BusinessProcessModel.
        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:
        java.lang.Exception
        RetryLaterException
      • getOrderForProcess

        public OrderModel getOrderForProcess​(B2BApprovalProcessModel process)
        Retrieves the order object from the process
        Parameters:
        process - The business process
        Returns:
        An order model refreshed from database.