I am working on a variation of the use case where a supervisor fills out a form and essentially approves the form when they submit it. I am trying to do this by comparing two User Id fields on the form. One field is the system identified "current user", the other is a field that gets its value from a lookup rule based on department. The external table has a list of approvers grouped by Department.
The idea is if a supervisor is filling out a form, he/she could pick their name from the approvers list. In the exclusive gateway the Approver field would then be compared against the current user, if they are the same routing goes one way, if they are not equal it goes another way.
Currently the result is that the process fails at the gateway. Can you not compare two fields in a form to make a routing decision in a gateway?
Attached are screen shots of the form, the workflow, and the code in the gateway.