# Wait for Event

Wait for an exact workspace/event/correlation match delivered through ONF runtime API or MCP.

Canonical URL: https://opennodeflow.dev/wiki/reference-app-runtime-def-onf-wait-event/
JSON reference: https://opennodeflow.dev/wiki/reference-app-runtime-def-onf-wait-event/index.json
Source snapshot: 2026-10-23

## 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](/wiki/durable-waits/) · [Browse the catalog](/wiki/integration-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


```json
{}
```





## 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](/wiki/versioning/), [connections](/wiki/connections/) and [integration setup](/wiki/integration-setup/).

---

## Documentation provenance

- `../OpenNodeFlow-Library/work/catalog-all.mjs`
- `../OpenNodeFlow-Library/work/azure-pack-consolidation-20261022/catalog-policy.mjs`
- `../OpenNodeFlow-Library/work/developer-packs-20261022/catalog.mjs`
- `shared/seed.ts`
- `shared/storage-library.ts`
- `shared/variable-library.ts`
- `shared/control-flow.ts`
- `shared/remote-routes.ts`
- `server/runtime-library.ts`
- `shared/error-library.ts`
- `shared/storage-model.ts`
- `shared/builtin-documentation.ts`

This page describes maintained source, not a live inventory or an authorization to perform actions.
