Top-level shape
parameters and node outputs are referenced. See Node reference for the per-node data schemas.
Terminal output nodes
Every path through a workflow ends in anoutput node. The output carries:
- a label (
APPROVED,REJECTED,IN_REVIEW,REPORTED_TO_REGULATOR, …) — surfaces as the terminal state in the audit log. - a schema — explicit list of fields written into the final decision record.
- an optional
returnAllFieldsboolean — if true, the entire run context is persisted with the decision; otherwise only the declared schema fields.
| Workflow type | Typical terminals |
|---|---|
| Onboarding (KYC / KYB) | APPROVED, IN_REVIEW, REJECTED |
| Transaction monitoring | APPROVED, BLOCKED, REPORTED_TO_REGULATOR |
| Lifecycle webhook consumer | case_updated |
| Sub-flow | Single named outcome (link_delivered, case_closed, …) |
returnAllFields: true is used for sub-flows that pass their entire context downstream and for audit-heavy terminals (KYB approvals, regulator submissions) that benefit from the full evidence pack on the decision. Otherwise prefer an explicit schema — the decision record stays compact and the audit export bundles read better.