cancel
Showing results for 
Search instead for 
Did you mean: 

How Do I forcefully complete a process instance when it is still in execution.

tauseefjanvekar
Champ in-the-making
Champ in-the-making
Hi All,

How Do I forcefully complete a process instance when it is still in execution.

I mean to say that there are still some tasks pending for this particular process instance but I would like to complete this process instance forcefully. I can do this by modifying the bpmn and adding an End task wherever I want on some conditions. But if I do not wish to modify the bmpn then how do I do this.

Note: All the process instances will be waiting in a receive task when I want to forcefully complete the process instances.

Thanks.
2 REPLIES 2

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Tas,

Is API method: org.activiti.engine.impl.RuntimeServiceImpl#deleteProcessInstance doing the job?

Regards
Martin

tauseefjanvekar
Champ in-the-making
Champ in-the-making
Hi Martin,

Thanks for the answer. This has worked for me.

Thanks,