Class QueryApiImpl
java.lang.Object
io.camunda.zeebe.gateway.query.impl.QueryApiImpl
- All Implemented Interfaces:
QueryApi
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
QueryApiImpl
-
-
Method Details
-
getBpmnProcessIdFromProcess
Description copied from interface:QueryApiLooks 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.- Specified by:
getBpmnProcessIdFromProcessin interfaceQueryApi- 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
Description copied from interface:QueryApiLooks 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.- Specified by:
getBpmnProcessIdFromProcessInstancein interfaceQueryApi- 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
Description copied from interface:QueryApiLooks 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.- Specified by:
getBpmnProcessIdFromJobin interfaceQueryApi- 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
-