Query process instance status


Is there a way using the Java client to query the status of process instance?

Example: we have a stream of Kafka events coming in. Of certain category of events we want create once 1 process instance, hence if a process instance is already active then we want to set some variables in it.

Also consider the situation when we want to correlate a message to a process but the process died or in error state for some reason, then if we can know if the process is alive or not before we correlate and send.

How to achieve this?

ok I think its not possible. Only way is to query elastic search … pff

The Message Aggregator pattern could help with your scenario: Messages | Camunda Cloud Docs