BS-2735 : Subtask is not aborted when parent task is skipped

- When change the state of a human task for a terminal state, check if it has manual tasks. If yes, abort them.
- Refactor tests to use enum for the state of a task or a process