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.
Thanks for your time.
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.
or go to the Rest API of Operate: Operate API (REST) | Camunda Platform 8 Docs.
Hope this helps, Ingo