Cancel a process instance or Kill an instance/deployment

2 posts / 0 new
Last post
Last seen: 2 years 2 months ago
Joined: 06/17/2013 - 13:21
Posts: 14
Cancel a process instance or Kill an instance/deployment

Hello Experts,

I would like to cancel or kill an instance using API in activiti. All I need to stop the instance from run but I dont want to delete the instance and remove it from engine. need to cancel/complete with a reason and keep it available in history table.

Also Is there an option to Cancel a deployment or set a deployment status to Completed status using an API so no future instances can be started.

Any response is really helpful

jbarrez's picture
Last seen: 1 month 3 weeks ago
Joined: 05/16/2010 - 12:14
Posts: 6186

runtimeService.deleteProcessInstance gives you that. History is kept in the database.

For your seconding question: not for a deployment, but you can suspend all process definition of a deployment separately, which gives you the same behavior.

Activiti Core Developer
My Blog: