Skip to main content

Overview

ExecutionContext is the runtime state container for workflow execution. It stores variables, resolves template expressions, and tracks node outputs.

Variable Management

setVariable / getVariable

hasVariable / deleteVariable

getAllVariables / clearAll / mergeVariables

Interpolation

interpolate

Resolves {{variable}} references in strings. If the entire string is a single reference, returns the actual value (not stringified).

interpolateObject

Recursively interpolates all strings in an object or array.
Use interpolateObject with prepareNodeInput to resolve all variable references in node configuration before execution.

Path Resolution

evaluateJsonPath

Evaluate JSONPath expressions against the variable store.
Single results are automatically unwrapped from arrays.

resolveNestedPath

Resolve dot-notation paths including array indices.

Node Output Storage

storeNodeOutput

Stores a node’s output and merges object keys to the root variable scope.

getNodeOutput

Retrieve a specific node’s stored output.

Context Conversion

toNodeContext

Create a NodeExecutionContext for passing to node executors.

Serialization

Factory Functions

All Methods