How to find a process instance after it has been started

Ian Harrison: Hi, it seems like Camunda 8 no longer has the concept of a “Business Key”. Is this correct?
What is the recommended way to find a specific process instance after it has been started? Do we need to store the processInstanceKey when starting the process?

korthout: Yes, if you need to interact directly with the process instance, you’ll need to store the processInstanceKey that is returned to the client when starting the process.

korthout: You can also provide a variable when creating the instance called businessKey which your job workers can use, and you can filter on the variable in Operate

korthout: Another more advanced option is to export the variable records of the businessKey variable to some data lake like Elasticsearch. These records contain both the variable value and the processInstanceKey they belong to.

korthout: Lastly, you could use something like https://github.com/camunda-community-hub/zeeqs/|ZeeQS which provides a way to query exported Zeebe data using GraphQL. But, please note that this is a community project.

Note: This post was generated by Slack Archivist from a conversation in the Camunda Platform 8 Slack, a source of valuable discussions on Camunda 8 (get an invite). Someone in the Slack thought this was worth sharing!

If this post answered a question for you, hit the Like button - we use that to assess which posts to put into docs.

1 Like

Ian Harrison: Ok korthout thanks for the information