temporalio.client.WorkflowHistory

A workflow's ID and immutable history.

Static Method from_json Construct a WorkflowHistory from an ID and a json dump of history.
Method to_json Convert this history to JSON.
Method to_json_dict Convert this history to JSON-compatible dict.
Class Variable events History events for the workflow.
Class Variable workflow_id ID of the workflow.
Property run_id Run ID extracted from the first event.

Construct a WorkflowHistory from an ID and a json dump of history.

This is built to work both with Temporal UI/CLI JSON as well as to_json even though they are slightly different.

Parameters
workflow_id:strThe workflow's ID
history:str | dict[str, Any]A string or parsed-to-dict representation of workflow history

Convert this history to JSON.

Note, this does not include the workflow ID.

Convert this history to JSON-compatible dict.

Note, this does not include the workflow ID.

History events for the workflow.

Run ID extracted from the first event.