Interface WorkflowStep

  • All Superinterfaces:
    Statefull

    public interface WorkflowStep
    extends Statefull
    Can be executed, undone, redone only once.
    • Method Detail

      • preExecute

        void preExecute​(String submitterTypedId)
        Any action that should be executed before actual denial, approval of step like sending email.
      • execute

        boolean execute​(WorkflowStep.WorkflowStepExecutionAction action,
                        String comment,
                        String selectedApprover,
                        String submitterTypedId)
        Executes step. WorkflowExecutionEngineException thrown in case action was not possible to make.
        Parameters:
        action -
        Returns:
        true the step is done, false otherwise (multiple approvals pending e.g.)
      • getPostLogicName

        String getPostLogicName()
      • setPostStepLogicFailed

        void setPostStepLogicFailed​(boolean failed)
      • getCanAddStepsFromPostStepLogic

        boolean getCanAddStepsFromPostStepLogic()
      • isPassThroughStep

        boolean isPassThroughStep()
        Step that is executed immediately without user intervention(Approval, denial...)
        Returns:
      • getUniqueName

        String getUniqueName()
      • writeNamesToWorkflowDefinition

        boolean writeNamesToWorkflowDefinition()