While

The While stage iterates over a sequence of transformations until a condition is met.

While Stage

Stage Processing

The stage continues until the loop condition fails or a failure occurs.

  • Success path: If all iterations complete successfully, the generated array is passed down the success path.
  • Failure path: If any iteration fails, the stage follows the failure path.

Each iteration must return a value using a Return stage. Metadata is preserved across iterations, allowing stateful information to be carried forward. When all iterations succeed, the updated metadata is also sent down the success path.

Settings

Loop Condition

The loop condition is a JavaScript expression that controls whether the loop continues. Return true to keep processing or false to stop. The expression must return a boolean value; otherwise, the stage will produce an error. The condition is evaluated after each iteration.

The loop variable accumulates values across all iterations, and its final value represents the most recent run.

Stage Timeout

Specifies how long the stage will run before timing out. If the timeout is reached before processing completes, all remaining operations are cancelled.