Query on Extracting Process Instance Variables

Hi,

How can we get process information of zeebe outside worker scope?
For example, I want to get the process variables of given process instance id using zeebe client.

We may need this for generating report by getting active process instance count or get process instance count based on specific process variable value.

Kindly provide your inputs.

Thank you in advance.

Hi @camundabpmlearner,

You cannot. Zeebe follows the CQRS pattern and only accepts commands to change the state of process instances to increase performance and throughput.

The new state is exported and queries have to use the exported data. This is possible with Operate, Tasklist and Optimize, which import the data from Zeebe and offer a query API.

Hope this helps, Ingo