Executes a number of times

Last published at: April 26th, 2021

Description:

Performs a series of step N number of times

Inputs

  • loopCounter - # of times to perform the loop
  • variableName – variable to store loop data 

Returns

  • loop – returns this value for each iteration of the loop
  • loopCompleted – returns this value once the loop is ended 

Usage:

Example:

Let’s build and execute the loopDef example.          

  • Create a new definition called “loopDef
  • Select the definition and click the “design” button
  • Drag a loop step from the toolbox
  • Connect the dots between the start and loop step
  • Drag and drop an “Evaluate Expression” step to the designer. Connect the “loop” step to the “Evaluate Expression” step and set the connection value to “loop”. As show below and connect back to loop with connection value “true”
  • Drag a updatevariable step to the canvas
  • Connect the dots between the loop and updatevariable step with connection value “loop completed”

  • Click on the “loop” step to configure its properties
  • Configure the following values for the properties as shown on the below graphic

  • Click on the “updatevariable” step to configure its properties
  • Configure the following values for the properties as shown on the below graphic

  • Click on the “Evaluate Expression” step to configure its properties
  • Configure the following values for the properties as shown on the below graphic

  • Save the workflow definition, create a workflow instance and execute. Step should perform series of step N number of times.
  • Render Instance and check the properties in each step based.