cancel
Showing results for 
Search instead for 
Did you mean: 

Deleting process instances of async tasks

moskalap
Champ in-the-making
Champ in-the-making

I have a process, which contains a asynchronous serviceTask which executes a a task defined in Java Class.

I wanted to "kill" proces instance. I have used RuntimeService.deleteProcessInstance, but the process didn't stop. The entry of this process has gone from ACT_RU_EXECUTION, but it was still being executed by activiti-engine.

How can I "kill" process instance contains asynchronous task by knowing its procesInstanceId?

Thanks in advance for reply

1 REPLY 1

cjose
Elite Collaborator
Elite Collaborator

hmm, that is strange. which version of Activiti are you using? Do you find an entry in the JOBS table after the delete? Can you provide a unit test to reproduce this issue?