--- id: OCX-1 family: RT-OCX level: core profiles: [runtime] posture: withdrawn added: "1.0" changed: "1.0" source: https://flowdrop.io/spec/rules/rt-ocx/ocx-1 specification: FlowDrop Workflow Specification 1.0 licence: CC BY 4.0 --- # OCX-1 — External invocation builds flat initial data *RT-OCX (Part II) · level: core · profiles: runtime · added in 1.0 · posture: withdrawn* Replaced by MAN-26: a firing delivers its event on the trigger node's reserved input, through the ordinary launch mapping. ## The rule > **Normative.** This is the rule. > > 1. The initial data for an externally invoked run is flat: the extracted trigger data at the top level, plus the identifiers of the trigger configuration and the trigger node, the same shape every other trigger kind builds. > > 2. Since a trigger emits its whole initial data as the node's `data` output, the caller's payload is reachable at `data.payload`, which is what the trigger's declared output schema advertises. > > 3. The initial data must not be keyed by node id. *This rule is withdrawn. It is kept so it stays citable.* Superseded by MAN-26. ## What it means The trigger's declared output schema says the caller's payload lives at `data.payload`. An envelope keyed by the trigger node's own id would put that same payload at `data.{node id}.payload` instead — reachable only by an expression that already knows the node's id, and broken the moment that node is renamed. Keeping the identifiers alongside the payload rather than above it is what keeps the shape identical to every other trigger kind, so a workflow author writes one expression regardless of what invoked the run. ## Example An external caller's payload arrives as trigger data for the trigger node `orchestration_trigger.1`: ```json title="The trigger data handed to the run" verdict="received" { "payload": { "title": "Council approves new tram line" }, "trigger_config_id": "envelope_probe__orchestration_trigger_1", "trigger_node_id": "orchestration_trigger.1" } ``` ```json title="The payload key of the run's initial data" verdict="flat" { "title": "Council approves new tram line" } ``` The initial data has no `orchestration_trigger.1` key: the payload sits at the top level, with `trigger_config_id` and `trigger_node_id` beside it, exactly where `data.payload` on the trigger's output schema says to look for it. ## Why Recorded under [OPEN-21](https://flowdrop.io/spec/rulings/open-21). ## Related rules - Names: OCX-3 --- Rule identifiers are permanent and are never renumbered. This specification carries no implementation status: each implementation publishes its own standing against these rules. Licensed CC BY 4.0.