Chore execution fails if parameters added or removed from process which is part of chore
Describe the bug
If a process which is part of a chore has parameters added or removed via Arc then this will invalidate all chores where the process is used due to an invalid parameter array size. The error is ...
"Invalid parameter array size.: Could not initialize proces"
In Architect/Perspectives if a chore is edited the error (or wrong saved parameters) is detected and the user cannot save or close the chore without correcting the error. Arc should have a similar feature in chore edit mode where the current parameters of all processes in a chore are checked against the saved values and deleted parameters are automatically removed and added parameters are automatically added (with the default value) and the user is notified and prompted to check the parameters before saving.
To Reproduce
Steps to reproduce the behavior:
- Add a new parameter to a process which is in a chore
- Open the chore in Arc
- From the chore editor attempt to run the chore
- The chore will fail when it gets to calling the process with added or deleted parameters
Expected behavior
It shouldn't be possible to run a chore which contains an invalid process parameter array.