Skip to main content

Loop

Category: Control

Iterate over collections with configurable behavior

What this node does

  • For-each iteration
  • Batch processing
  • Parallel iteration
  • Break conditions

How to use

  1. In the Hydra Builder, open or create a workflow
  2. In the node palette on the left, find Loop under the Control category (or use the search bar)
  3. Drag the node onto the canvas
  4. Double-click the node to open its configuration dialog
  5. Fill in the required parameters (see Configuration below)
  6. Connect the Items to Iterate input port from an upstream node
  7. Connect the Current Item and All Results output to the next node downstream

Inputs

PortTypeRequiredDescription
Items to IteratearrayA list of items

Outputs

PortTypeDescription
Current Itemanyany data
All ResultsarrayA list of items

Configuration

Open the configuration dialog by double-clicking the Loop node on the canvas.

ParameterWhat to enter
iterationTypeConfigure iterationType in the node settings
batchSizeNumber of records to process per batch (larger = faster but more memory)
parallelConfigure parallel in the node settings
maxIterationsConfigure maxIterations in the node settings

When to use this node

  • Process patient list
  • Batch updates
  • Collection processing

Need help configuring this node?

Go to Settings → Connectors to set up the connection this node depends on, then reference the connector ID in the node configuration dialog.