Accessing One workflow from another workflow?

Hi, I am new to Camunda. Kindly help me to figure out the solution for my below scenario

I have some 4 workflows runnning. In the fifth workflow i have need to identify a workflow by means of some matching ID. If any workflow match is found i need to terminate that specific workflow alone.
Also, Is there any way to put an user defined ID for each workflow created?

Hi @Gowtham_Quez

you could use the Business Key as user generated ID to identify a specific Workflow Instance.

Of course you could use a ServiceTask or ExecutionListener to executes some code to query for your workflow instance to delete for example by business key.
If you found the relevant Instance you could delete it via RuntimeService.

Best regards,

Markus

1 Like