For (Activity)


  • Purpose: To execute a set of activities a fixed number of times, based on a defined iteration count.

  • Functionality: The "For" activity implements a traditional "for loop" structure. You configure it with:
    • Iteration Count: The number of times the loop should execute.
    • Loop Body: The set of activities that will be repeated in each iteration.
    • Optionally, it might provide an iteration index or counter that can be used within the loop body to track the current iteration number.

  • Use Cases:
    • Repetitive Tasks with Known Iterations: Performing a specific action a fixed number of times (e.g., retry an operation a certain number of times, generate a fixed number of reports, process a predefined number of items).
    • Sequential Processing with Count: Iterating through a sequence of steps a specific number of times, where the number of iterations is known in advance.
    • Simple Looping Scenarios: Implementing basic loops where the primary need is to repeat actions a set count of times.