Skip to content

Function: executeFlow() ​

ts
function executeFlow<TIn, THandle>(flowCtx): Promise<FlowRunResult>;

Defined in: runtime/flow/execute-flow.ts:176

Executes a FlowNode from start or crash-recovery resume through its sequential steps and conditional branches (SPEC.md §3.9).

Compiles and pins PrefixGroupNode wire prefixes at run start, loops across flow.nodes (supporting live .rewindTo() jumps), seals the run's topology overlay on completion, and releases the root scope in finally.

Type Parameters ​

Type ParameterDefault typeDescription
TInunknownValidated flow input payload type.
THandleunknownRuntime handle type of the active isolation scope.

Parameters ​

ParameterTypeDescription
flowCtxFlowExecutionContext<TIn, THandle>Configured flow execution context.

Returns ​

Promise<FlowRunResult>

Terminal flow run receipt and outputs.

Released under the MIT License.