# Function createInitializedWorkflowEngine

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

- createInitializedWorkflowEngine(
  config?: WorkflowEngineFactoryConfig,
  ): Promise<IWorkflowEngine>

  Creates and initializes a WorkflowEngine with built-in templates loaded. This is the recommended way to create a production workflow engine.

  Note: Requires modelAdapter, expertFactory, or useMockExecutor: true to be specified. Without these, WorkflowExecutionUnavailableError will be thrown. (Source: Issue #507 - Fail-safe workflow execution)

  #### Parameters

  - `Optional` config: WorkflowEngineFactoryConfig

    Engine configuration

  #### Returns Promise<IWorkflowEngine>

  Promise resolving to WorkflowEngine instance

  - Defined in packages/nexus-agents/src/workflows/workflow-engine-factory.ts:577