Class CreationWorkflowDefinition

Object
CreationWorkflowDefinition

public class CreationWorkflowDefinition extends Object
  • Constructor Details

    • CreationWorkflowDefinition

      public CreationWorkflowDefinition()
  • Method Details

    • getSteps

      Retrieves a list of all steps in the given workflow.
      Returns:
      a list of CreationWorkflowStepDefinition objects.
      Since:
      3.4.0 - Cuba Libre
      See Also:
    • withSteps

      Adds specified steps (must be already defined within the logic) to the Creation Workflow.

      Example:

      
       return api.newCreationWorkflow()
               .withSteps(step1, step2, step3)
       
      Parameters:
      steps - The list of steps (CreationWorkflowStepDefinition).
      Returns:
      The CreationWorkflowDefinition object with given steps.
      Since:
      3.4.0 - Cuba Libre
      See Also:
    • resetCurrentStepTo

      public void resetCurrentStepTo(int step)
      Switches the Creation Workflow to the specified step, ignores what the user clicked in the user interface.
      Parameters:
      step - The number of a step you want to switch the Creation Workflow to.
      Since:
      3.4.5 - Cuba Libre PR5
      See Also:
    • getRequestedCurrentStep

      public Integer getRequestedCurrentStep()