# Function getExecutionOrder

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

- getExecutionOrder(plan: WorkflowExecutionPlan): string[]

  Gets the execution order of steps as a flat array. Steps in the same phase are grouped together.

  #### Parameters

  - plan: WorkflowExecutionPlan

    Execution plan

  #### Returns string[]

  Ordered array of step IDs

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