Workflow execution state

Tracks the current state of a workflow execution.

interface WorkflowExecution {
    id: string;
    workflowId: string;
    status: WorkflowExecutionStatus;
    currentStep?: string;
    variables: Record<string, unknown>;
    startTime: Date;
    endTime?: Date;
    error?: Error;
    stepHistory: StepExecutionRecord[];
}

Properties

id: string

Execution identifier

workflowId: string

Workflow identifier

Current status

currentStep?: string

Current step being executed

variables: Record<string, unknown>

Workflow variables

startTime: Date

Start time

endTime?: Date

End time (if completed/failed/cancelled)

error?: Error

Error if failed

stepHistory: StepExecutionRecord[]

Step execution history