Terminate End Event is not supported by Camunda 8

We are migrating from Camunda 7 to 8. Terminate End Event is not supported by Camunda 8. How can we use the Terminate end event because our flow is stopped and cannot finish? If anyone knows a solution, kindly respond.

Hi @Atmabodh_Hande

You could use a service task and write a worker that call the CancelProcessInstance API with the process id of any job that it receives.

Josh

An explanation of the current BPMN flow.

Numerous call activities are shown in the main BPMN diagram. There are numerous subprocesses within one call activity.

What should change

When one process is finished, all concurrently running subprocesses should also end and move on to the next call activity.

Solution

Each subprocess now has a message boundary event that points to the end event. Before a subprocess is finished, one task will publish a message, which the “message boundary event” will detect and halt the process. Making a terminate end event makes it simple to accomplish this; no more effort is required.

Terminate events | Camunda Platform 8 Docs Terminate events | Camunda Platform 8 Docs