# Function getVariable

Workflows exports - Workflow engine with parallel execution Split from index.ts for file size compliance (Issue #285)

- getVariable(context: WorkflowExecutionContext, name: string): unknown

  Gets a variable from the execution context.

  #### Parameters

  - context: WorkflowExecutionContext

    The execution context

  - name: string

    Variable name

  #### Returns unknown

  The variable value or undefined

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