Hi,
I have an Annual Leave workflow configured where a leave request first goes to the worker's direct line manager, (hierarchy level 1) and then onto the Human Resource Manager security Role. All works correctly. However, if the line manager selects Deny rather than approve, although the status of the request correctly updates to Denied, in the workflow history, it errors with the following fault:
"Stopped (error): Invalid operation - the state transition from Denied state to InReview state is invalid."
Although the outcome is as the client requires, the fault in the workflow history is bothering them. I haven't been able to prevent this error, which I am guessing is because the workflow is trying to move onto the final stage but can't because of the deny action.
Has anyone come across this before and is there a way to prevent the fault in the workflow history?
Thank you