Skip to content

TimelineEntry

Defined in: src/types/index.ts:1104

One ordered run of one state: a single attempt, a single Map iteration, a single pass through a Parallel branch. Retries and re-entries are separate entries rather than being summed the way ExecutionStateResult sums them.

attempt: number;

Defined in: src/types/index.ts:1106

1-based attempt number within this entry of the state; a Retry increments it.


optional branchCount?: number;

Defined in: src/types/index.ts:1108

Branches this Parallel started, from the history. Absent for any other state.


optional cause?: TimelinePayload;

Defined in: src/types/index.ts:1110

The failure’s cause, when payloads were captured and this run failed.


enteredMs: number;

Defined in: src/types/index.ts:1112

Epoch ms the state was entered, or the attempt began.


optional error?: string;

Defined in: src/types/index.ts:1114

Error name for a failed or caught entry, when the history records one.


optional exitedMs?: number;

Defined in: src/types/index.ts:1116

Epoch ms the entry ended; absent while it is still open.


optional fromNodeId?: string;

Defined in: src/types/index.ts:1118

Node id of the state this entry was transitioned from, when the history records one.


optional input?: TimelinePayload;

Defined in: src/types/index.ts:1120

The state’s input, when payloads were captured and the history recorded one.


optional iterationCount?: number;

Defined in: src/types/index.ts:1122

Iterations this Map started, from the history. Absent for any other state.


nodeId: string;

Defined in: src/types/index.ts:1124

Graph node id, matching the renderer’s data-state-id.


optional output?: TimelinePayload;

Defined in: src/types/index.ts:1126

The state’s output, when payloads were captured and this run exited normally.


stateName: string;

Defined in: src/types/index.ts:1128

ASL state name, as the history records it.


status: TimelineEntryStatus;

Defined in: src/types/index.ts:1130

How this run of the state ended.