How to get the ProcessInstanceId by businessKey . This businessKey is our unique key for each execution.
You can use the
ProcessInstanceQuery (get it via
HistoricProcessInstanceQuery (get it via
HistoryService#createHistoricProcessInstanceQuery(). The queries have
processInstanceBusinessKey to which you can pass your key and then you can either use
list() to get all matching process instances.