Loop

Loop task allows for repeated execution of a task or sub-process based on a specified condition. The Loop task consists of two parts – Start loop and End loop.

  • Provision to define a loop for iterative execution of a task or sub-process.
  • Provision to resume control to the next iteration of the loop in the event of failure of any task within the loop.
  • Provision to define rule or Boolean condition (AND, OR, NOT) to execute the loop variable. If the condition holds true, the loop continues to iterate. If the condition holds false, the loop skips or exists.
  • Provision to display the count of iteration in the stage view



To add a Loop task to your workflow:

  1. Design a workflow.
  2. From the General section, drag and drop the Loop task.
  3. Define a script to get a list of values.

  4. Define a sample list of values and declare it as a global variable.

  5. Under Loop variables, reference the variable from the previous task to be used for iteration.

  6. Define a Script task for printing list objects.

  7. Connect the workflow tasks.
  8. Click Preview.
    • Loop execution with iteration count displayed.

    • Printing list objects completed.