# Function setVariable

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

- setVariable(
  context: WorkflowExecutionContext,
  name: string,
  value: unknown,
  ): void

  Sets a variable in the execution context.

  #### Parameters

  - context: WorkflowExecutionContext

    The execution context

  - name: string

    Variable name

  - value: unknown

    Variable value

  #### Returns void

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