# Function validateWorkflow

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

- validateWorkflow(workflow: WorkflowDefinition): Result<void, ParseError>

  Validates a WorkflowDefinition object. Useful for validating programmatically created workflows.

  #### Parameters

  - workflow: WorkflowDefinition

    WorkflowDefinition to validate

  #### Returns Result<void, ParseError>

  Result with void or ParseError

  - Defined in packages/nexus-agents/src/workflows/workflow-parser.ts:273