ForEach@1
Der Node ForEach@1 ermöglicht es, über ein Array zu iterieren und für jedes Element eine Sub-Transformations-Pipeline auszuführen.
Der Node erzeugt ein Array von Ausgaben, eine pro Iteration.
Adapter-Voraussetzungen
- Allgemeine Verfügbarkeit: Alle Adapter unterstützen diesen Node-Typ.
Node-Konfiguration
Zu den Feldern path, targetPath, targetValueWriteMode und targetValueKind siehe Überblick.
transformations:
- type: ForEach@1
iterationPath: $.customers # Path to the array to iterate over
targetPath: $.items # 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: CreateUpdateInfo@1
targetPath: $._updateItem
updateKind: INSERT
ckTypeId: OctoSdkDemo/Customer
attributeUpdates:
- attributeName: Name
attributeValueType: String
valuePath: $.customer.lastName