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
- In the Hydra Builder, open or create a workflow
- In the node palette on the left, find Loop under the Control category (or use the search bar)
- Drag the node onto the canvas
- Double-click the node to open its configuration dialog
- Fill in the required parameters (see Configuration below)
- Connect the Items to Iterate input port from an upstream node
- Connect the Current Item and All Results output to the next node downstream
Inputs
| Port | Type | Required | Description |
|---|---|---|---|
| Items to Iterate | array | ✓ | A list of items |
Outputs
| Port | Type | Description |
|---|---|---|
| Current Item | any | any data |
| All Results | array | A list of items |
Configuration
Open the configuration dialog by double-clicking the Loop node on the canvas.
| Parameter | What to enter |
|---|---|
iterationType | Configure iterationType in the node settings |
batchSize | Number of records to process per batch (larger = faster but more memory) |
parallel | Configure parallel in the node settings |
maxIterations | Configure 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.