Deleting process instances of async tasks

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Member II

Deleting process instances of async tasks

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
Highlighted
Senior Member II

Re: Deleting process instances of async tasks

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?