class Temporalio::Client::WorkflowHandle
def query(
- Note: - Handles created as a result of {Client.start_workflow} will query the latest workflow with the same
Raises:
-
(Error::RPCError)
- RPC error from call. -
(Error::WorkflowQueryRejectedError)
- A query reject condition was satisfied. -
(Error::WorkflowQueryFailedError)
- The query on the workflow returned a failure.
Returns:
-
(Object, nil)
- Query result.
Parameters:
-
rpc_options
(RPCOptions, nil
) -- Advanced RPC options. -
reject_condition
(WorkflowQueryRejectCondition, nil
) -- Condition for rejecting the query. -
args
(Array
) -- Query arguments. -
query
(Workflow::Definition::Query, Symbol, String
) -- Query definition or name.
def query( query, *args, reject_condition: @client.options.default_workflow_query_reject_condition, rpc_options: nil ) @client._impl.query_workflow(Interceptor::QueryWorkflowInput.new( workflow_id: id, run_id:, query:, args:, reject_condition:, headers: {}, rpc_options: )) end