AnsweredAssumed Answered

Deleting Process Instance of Sub Process does not mark the parent call activity as Complete

Question asked by rishiraj.kalla on Jun 6, 2014
Latest reply on Dec 5, 2017 by deign
Hi,

I noticed that on deleting process instance of a sub process(through runtimeService.deleteProcessInstance) does not marks the parent call activity as complete, I am using Activiti 5.13 with SpringProcessEngineConfiguration embedded in web server.

I have developed a unit test case with sample process xml to reproduce this, but not sure if this is a bug to report it on JIRA or this is the expected behavior by design.

Also noticed that when delete process instance (through runtimeService.deleteProcessInstance) is called it does not triggers the END EVENT for the sub process.

My understanding was that deleting a sub process instance should achieve the following things:

1. Complete all the tasks of sub process
2. End the sub process by triggering end event . (so that if any process end event listener is configured it can be invoked)
3. Marks the parent call activity as complete

Sorry about the long description but just wanted to provide all details that I have.

Appreciate any help on this.

With Regards,
Rishi

Outcomes