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

-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)

fixes CAM-2958