fix(engine): change process definition for all sub execution belonging to a process instace

-adds test for the change
-the test does not show the AssertionError at line 382 due to the delete deployment, there is a referential integrity exception when you want to delete the manual deployment

fixes  [CAM-2958](https://app.camunda.com/jira/browse/CAM-2958)