Wait for Event
Wait for an exact workspace/event/correlation match delivered through ONF runtime API or MCP.
Wait for Event#
Wait for an exact workspace/event/correlation match delivered through ONF runtime API or MCP.
The run stores its exact workflow and library versions, releases execution concurrency while waiting, and survives host restart. Completed upstream nodes are not repeated. Output value contains the resume payload (or null for a timer/timeout), timedOut reports event/approval expiry, and next continues execution. Approval values have {decision,value}; taskId identifies the Inbox task.
Event delivery requires a unique eventId and exact eventKey/correlationKey in the same workspace. Events match currently pending waits; they are not an unbounded pre-arrival event bus. Use Storage to retain events before a wait is created. No code child, sleep promise or worker slot is held while suspended. Cancellation closes pending tasks and never executes downstream effects.
Catalog identity#
| Field | Value |
|---|---|
| Source key | app.runtime.def_onf_wait_event |
| Kind | node |
| Family | app-runtime |
| Pack | See library discovery |
Integration guide · Browse the catalog
Inputs#
| Socket ID | Label | Type | Required | Meaning |
|---|---|---|---|---|
exec | Exec | control | No | |
eventKey | Event Key | string | Yes | |
correlationKey | Correlation Key | string | Yes | |
timeoutMs | Timeout Ms | number | No |
Outputs#
| Socket ID | Label | Type | Required | Meaning |
|---|---|---|---|---|
next | Next | control | No | |
value | Value | any | No | |
timedOut | Timed Out | boolean | Yes |
Configuration schema#
{}Source and installed versions#
This reference describes the maintained source catalog snapshot, not a live export of your installation. Published definitions use immutable versions; installed graphs retain their exact pins. Discover and read the installed definition and selected version before wiring it. See versioning, connections and integration setup.
Source provenance
Reviewed against maintained source and topic documentation on 23 October 2026. This is a source snapshot; installed versions and provider access may differ.
../OpenNodeFlow-Library/work/catalog-all.mjs../OpenNodeFlow-Library/work/azure-pack-consolidation-20261022/catalog-policy.mjs../OpenNodeFlow-Library/work/developer-packs-20261022/catalog.mjsshared/seed.tsshared/storage-library.tsshared/variable-library.tsshared/control-flow.tsshared/remote-routes.tsserver/runtime-library.tsshared/error-library.tsshared/storage-model.tsshared/builtin-documentation.ts