Using Kaleo framework and Workflow API, try to apply workflow on a custom asset and start the "Single approver" process on it.
- My application apply initial status value = 0 to the asset.
- When a reviewer assign the task to his/her self, the status change to 1 (Ok)
- When a reviewer approve the task, the status change to 0 (Ok, and the process end)
- When a reviewer refuse the task, the status don't change to 4 - it is still 1 (KO, and the process continue)
In fact, it is impossible to change the status to 4 (refused).