# Function createExecutionPlan

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

- createExecutionPlan(
  workflow: WorkflowDefinition,
  ): Result<WorkflowExecutionPlan, WorkflowError>

  Creates an execution plan from a workflow definition. Groups steps into phases based on dependencies for parallel execution.

  #### Parameters

  - workflow: WorkflowDefinition

    Workflow definition to analyze

  #### Returns Result<WorkflowExecutionPlan, WorkflowError>

  Result with ExecutionPlan or WorkflowError

  - Defined in packages/nexus-agents/src/workflows/execution-planner.ts:225