Workflow Logic
Overview
Workflow-native components for iteration, data aggregation, and control flow in Zafeguard.
Overview
Workflow logic components orchestrate the execution graph — routing data, iterating over arrays, and aggregating outputs.
| Component | Description |
|---|---|
FOR_EACH | Iterate over an array, running downstream stages for each item |
ARRAY_BUILDER | Collect multiple inputs into a typed array |
STRING_CONSTANT | Emit a static string as a workflow data output |
ON_API_CALLED | Trigger: start a workflow when an HTTP request is received |
How workflow logic works
These components run inline with no network round-trip, so they have near-zero latency and consume minimal credits.
Parallelism is handled automatically — when FOR_EACH spawns N iterations, all N run concurrently (up to the workspace concurrency limit).