For Each

The For Each stage processes each element in an array, runs transformations on each value, and collects the transformed results while preserving the original array order.

For Each Stage

Stage Processing

The stage continues until all values have been processed or a failure occurs.

  • Success path: If all items are processed successfully, the transformed array is passed down the success path.
  • Failure path: If any iteration fails, the stage follows the failure path.

Each iteration must return its transformed 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

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.