I’m currently trying camunda 8 to manage business flows that need approval, i would like to check (by Id or variable) if a process instance is waiting for an approval or to retrieve the current task that is executing if needed.
I’m using NestJS Zeebe Connector in case that’s something worth mentioning.
I know it can be done in camunda 7 using the runtimeService but haven’t found a way to replicate in camunda 8.
To do something like this - arbitrary inspection of process instance state, you would need to use an exporter and read the exported stream.
It is not a simple API call.
Your best bet to achieve this - other than rethinking the requirements and nailing it down to something concrete (rather than “inspect any process at any point”) - is to export to ElasticSearch and then use the ES REST API to query the exported data.