Cancel a process instance or Kill an instance/deployment

2 posts / 0 new
Last post
sharat
Offline
Last seen: 1 month 2 weeks 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
jbarrez's picture
Offline
Last seen: 2 days 5 hours ago
Joined: 05/16/2010 - 12:14
Posts: 3712

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: http://www.jorambarrez.com