Structured execution history for a durable workflow, returned by handle.exportExecution().

Events are chronologically ordered with sequential event_id values. Completed/failed events carry scheduled_event_id or initiated_event_id back-references to their corresponding scheduled/started events.

The summary provides aggregate counts by category (activities, child workflows, timers, signals) for quick dashboard rendering.

In verbose mode, children contains recursively fetched child workflow executions, each with their own events and summaries.

interface WorkflowExecution {
    children?: WorkflowExecution[];
    close_time: string;
    duration_ms: number;
    events: WorkflowExecutionEvent[];
    result: any;
    start_time: string;
    status: WorkflowExecutionStatus;
    stream_history?: StreamHistoryEntry[];
    summary: WorkflowExecutionSummary;
    task_queue: string;
    workflow_id: string;
    workflow_type: string;
}

Properties

children?: WorkflowExecution[]
close_time: string
duration_ms: number
result: any
start_time: string
stream_history?: StreamHistoryEntry[]
task_queue: string
workflow_id: string
workflow_type: string