FlowDSL Node Catalog

ForEach

Emit one output packet per element of an array field.

Overview

PropertyValue
Node IDcore/foreach
Kindtransform
Modulecore-flowdsl
Repogo-flowdsl
Handlergithub.com/redelay/go-flowdsl/nodes/core.ForEach
Iconlucide:repeat
Color#f59e0b
Tagscontrol-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

PropertyTypeRequiredDefaultUI GroupDescription
indexKeystring—index—
itemKeystring—item—
sourcePathstringyes——

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