class Temporalio::Client::WorkflowHandle
def fetch_history(
-
(Error::RPCError)
- RPC error from call.
Returns:
-
(WorkflowHistory)
- Workflow history.
Parameters:
-
rpc_options
(RPCOptions, nil
) -- Advanced RPC options. -
skip_archival
(Boolean
) -- Whether to skip archival. -
event_filter_type
(Api::Enums::V1::HistoryEventFilterType
) -- Types of events to fetch.
def fetch_history( event_filter_type: Api::Enums::V1::HistoryEventFilterType::HISTORY_EVENT_FILTER_TYPE_ALL_EVENT, skip_archival: false, rpc_options: nil ) WorkflowHistory.new( fetch_history_events( event_filter_type:, skip_archival:, rpc_options: ).to_a ) end