[Community-version] How to get process with businessKey

Hello,
I created over 2 process with api: /engine-rest/message
How to I get exactly process with businessKey created before?
And get variable of that process?
Thank you for your help.

@manhha you have to query for runtime or historic process instances to get the business key. You can try these rest api,

From runtime:
https://docs.camunda.org/manual/7.11/reference/rest/process-instance/post-query/

https://docs.camunda.org/manual/7.11/reference/rest/process-instance/get-query/

https://docs.camunda.org/manual/7.11/reference/rest/process-instance/get/

From history:
https://docs.camunda.org/manual/7.11/reference/rest/history/process-instance/

Thank you so much