FlowDSL Node Catalog
ForEach
Emit one output packet per element of an array field.
Overview
| Property | Value |
|---|---|
| Node ID | core/foreach |
| Kind | transform |
| Module | core-flowdsl |
| Repo | go-flowdsl |
| Handler | github.com/redelay/go-flowdsl/nodes/core.ForEach |
| Icon | lucide:repeat |
| Color | #f59e0b |
| Tags | control-flow, iterate, loop |
Description
Iterates over the array at sourcePath and emits one packet per item.
Each emitted packet has the item under itemKey and the 0-based index
under indexKey. Downstream runs once per item.
Outputs
items— Array of per-item packets written to Output.items.
Settings
| Property | Type | Required | Default | UI Group | Description |
|---|---|---|---|---|---|
indexKey | string | — | index | — | |
itemKey | string | — | item | — | |
sourcePath | string | yes | — | — |
Example
yaml
# Use this node in a flow:
nodes:
- id: my_step
name: My Step
kind: transform
action_ref: core/foreach
config:
indexKey: index
itemKey: item
sourcePath: some.packet.path