Function: executeFlowStep()
ts
function executeFlowStep<TIn, THandle>(
flowCtx,
stepNode,
outerBranchId?
): Promise<{
output?: unknown;
status: "completed" | "suspended" | "rewound";
}>;Defined in: runtime/flow/internal/execute-flow-step.ts:338
Executes a single FlowStepNode, handling .inputFrom() projection, step-level .replaceWith() promotion, and .retry() backoff (SPEC.md §3.9).
Persists completedStepOutputs and recordStepTransition in LedgerStore when the step completes, and quiesces 'scope'-scoped services and restores baseScopeCheckpoint if the step faults or aborts.
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
TIn | unknown | Validated flow input payload type. |
THandle | unknown | Runtime handle type of the active isolation scope. |
Parameters
| Parameter | Type | Description |
|---|---|---|
flowCtx | FlowExecutionContext<TIn, THandle> | Active flow execution context. |
stepNode | FlowStepNode<unknown, unknown, THandle> | Passive FlowStepNode to execute. |
outerBranchId? | string | Optional enclosing FlowBranchNode.id for output attribution. |
Returns
Promise<{ output?: unknown; status: "completed" | "suspended" | "rewound"; }>
Step execution outcome.