# Interface WorkflowExecutionContext

Full execution context for a running workflow. Tracks step results, variables, and provides input resolution. This is the comprehensive context used by the step executor.

interface WorkflowExecutionContext {
workflowId: string;
executionId: string;
inputs: Record<string, unknown>;
stepResults: Map<string, StepResult>;
variables: Map<string, unknown>;
startedAt: Date;
cancelled: boolean;
}

- Defined in packages/nexus-agents/src/workflows/execution-context.ts:17

##### Index

### Properties

workflowId
executionId
inputs
stepResults
variables
startedAt
cancelled

## Properties

### `Readonly` workflowId

workflowId: string

Workflow definition ID

- Defined in packages/nexus-agents/src/workflows/execution-context.ts:19

### `Readonly` executionId

executionId: string

Unique execution instance ID

- Defined in packages/nexus-agents/src/workflows/execution-context.ts:21

### `Readonly` inputs

inputs: Record<string, unknown>

Initial workflow inputs

- Defined in packages/nexus-agents/src/workflows/execution-context.ts:23

### `Readonly` stepResults

stepResults: Map<string, StepResult>

Results from completed steps (stepId -> result)

- Defined in packages/nexus-agents/src/workflows/execution-context.ts:25

### `Readonly` variables

variables: Map<string, unknown>

Runtime variables set during execution

- Defined in packages/nexus-agents/src/workflows/execution-context.ts:27

### `Readonly` startedAt

startedAt: Date

Execution start time

- Defined in packages/nexus-agents/src/workflows/execution-context.ts:29

### cancelled

cancelled: boolean

Whether execution has been cancelled

- Defined in packages/nexus-agents/src/workflows/execution-context.ts:31