Thanks Tijs and Martin, I defined a process variable per process instance initialisation to differentiate process instances and used businessKey to group them. However, I am not able to query by businessKey. This is what I am doing:
POST query/process-instances
{
"processDefinitionKey": "MyProcess",
"businessKey":"MyBusinesKey"
}
I have tried replacing "businessKey" with "processInstanceBusinessKey" as well but each time I get a 400.
Is querying by businessKey not possible or am I doing something wrong here?
Thanks,
Shuchi