18.23Scenario 22 — For Each or DataWeave?
Prompt:
“Convert 100 objects into another shape.”
Do not use:
For Each
just for transformation.
Use:
payload map (item) -> ...
Use For Each when you need repeated side effects/processors.
Memorize:
map
= data transformation
For Each
= repeated orchestration