Skip to main content

Function: runChild()

runChild<T>(options, nodeId, nodeLabel, sourceRowId, input, invoke): Promise<T>

Defined in: packages/core/src/core/hooks.ts:286

runStep in the form every composite outside graph actually needs: options in, options out, with the nested hooks already substituted.

path is [] on the context deliberately. A composite knows the ids it allocated and nothing about where it sits; if it is nested, its parent prefixes the ancestry on the way out. Each level contributes only its own hop, which is what lets arbitrary nesting compose.

graph does not use this — it fires the boundary in pieces because it also has to emit skip cascades and drain queued events between start and done.

Type Parameters

T

T

Parameters

options

ProcessOptions | undefined

nodeId

string

nodeLabel

string

sourceRowId

string

input

unknown

invoke

(childOptions) => Promise<T>

Returns

Promise<T>