setVariable | (name: string, value: unknown): void | Set a variable |
getVariable | (name: string): unknown | Get a variable |
getAllVariables | (): Record<string, unknown> | Get copy of all variables |
hasVariable | (name: string): boolean | Check if variable exists |
deleteVariable | (name: string): void | Delete a variable |
clearAll | (): void | Clear all variables |
mergeVariables | (vars: Record<string, unknown>): void | Merge multiple variables |
evaluateJsonPath | (path: string): unknown | Evaluate JSONPath expression |
interpolate | (template: string): unknown | Interpolate {{var}} in string |
interpolateObject | <T>(obj: T): T | Recursively interpolate object |
resolveNestedPath | (path: string): unknown | Resolve dot-notation path |
storeNodeOutput | (nodeId: string, output: unknown): void | Store node output |
getNodeOutput | <T>(nodeId: string): T | undefined | Get stored node output |
toNodeContext | (userId, workflowExecutionId, campaignId?): NodeExecutionContext | Create executor context |
toJSON | (): Record<string, unknown> | Export variables |
static fromJSON | (json): ExecutionContext | Create from serialized data |