Package io.camunda.zeebe.gateway.query
Interface QueryApi
- All Known Implementing Classes:
QueryApiImpl
public interface QueryApi
The query API allows you to asynchronously retrieve information about certain resources from a
remote partition on a broker.
NOTE: queries are routed to the correct partition based on the given key. They may also be routed to remote nodes.
-
Method Summary
Modifier and TypeMethodDescriptiongetBpmnProcessIdFromJob(long key, Duration timeout) Looks up the job identified by the given key, and returns the BPMN process ID associated with its process instance.getBpmnProcessIdFromProcess(long key, Duration timeout) Looks up the process definition from the given key, and returns its BPMN process ID.getBpmnProcessIdFromProcessInstance(long key, Duration timeout) Looks up the process instance identified by the given key, and returns the BPMN process ID of its process definition.
-
Method Details
-
getBpmnProcessIdFromProcess
Looks up the process definition from the given key, and returns its BPMN process ID. The key should be the one obtained via the deployment command for the given process.After
timeoutduration, the returned future is completed exceptionally with aTimeoutException.- Parameters:
key- the process definition keytimeout- the maximum duration to wait for until the request is completed- Returns:
- the process ID of the process definition identified by the given key
-
getBpmnProcessIdFromProcessInstance
Looks up the process instance identified by the given key, and returns the BPMN process ID of its process definition. The key should be the one obtained via the instance creation command.After
timeoutduration, the returned future is completed exceptionally with aTimeoutException.- Parameters:
key- the process instance keytimeout- the maximum duration to wait for until the request is completed- Returns:
- the process ID associated with the process instance identified by the given key
-
getBpmnProcessIdFromJob
Looks up the job identified by the given key, and returns the BPMN process ID associated with its process instance. The key should be the one obtained one of the job commands, e.g. job activation.After
timeoutduration, the returned future is completed exceptionally with aTimeoutException.- Parameters:
key- the job keytimeout- the maximum duration to wait for until the request is completed- Returns:
- the process ID associated with the job identified by the given key
-