Skip to main content

For@1

Node For@1 allows to iterate from 0 to a specified number of iterations and execute a sub transformation pipeline for each iteration.

The node produces an array of outputs, one for each iteration.

Adapter Prerequisites

  • General availability: All adapters support this node type.

Node Configuration

For fields path, targetPath, targetValueWriteMode, and targetValueKind, see Overview.

transformations:
- type: For@1
count: 4 # Number of iterations
targetPath: customers # Path where the data should be stored in the payload (will be an array)
transformations: # Sub pipeline that will be executed for each iteration
- type: Simulation@1
simulations:
- targetPath: $.customer.firstName
simulatorKey: Person.FirstName
- targetPath: $.customer.lastName
simulatorKey: Person.LastName
- targetPath: $.customer.street
simulatorKey: Address.StreetName