cancel
Showing results for 
Search instead for 
Did you mean: 

deleteProcessInstance() for parent -> child (callActivity)

aseem
Champ in-the-making
Champ in-the-making
Does deleting parent's processInstance not delete all child processes (something like cascaded delete)? (v5.19)
Or do we have to individually delete child processes and then delete the parent processinstance?
3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
It's been a while since I've been in that area … but your text seems to point in the direction it doesn't delete child process instances when deleting a parent instance?

aseem
Champ in-the-making
Champ in-the-making
Yes, well that's what I had initially thought it was doing. Keeping the child processes around when the parent was deleted. But that turned out to be a bug in the client code rather than being in activiti where the process instance ids were GUIDs and a wrong one was being passed to the method to be deleted.

It does delete children and grandchildren processes in subworkflow if we delete the parent as expected.

I'm sorry, should've put a reply out saying its a non issue.

jbarrez
Star Contributor
Star Contributor
Thanks for posting back, good to hear it's not an issue 🙂