I've been trying to figure this out for a while, and I just can't see it. My Forms process goes into a sub-process (which just calls a Workflow and saves to the repository), then goes into this Exclusive Gateway:
From there, I have four possible options:
- /dataset/_fs_action="Save Changes and /dataset/Permit_Status!="Permit Generated" and /dataset/Close_Active_Process/Close_Process="unchecked"
- /dataset/_fs_action="Send for Payment"
- /dataset/_fs_action="Void Permit" or /dataset/Close_Active_Process/Close_Process="checked"
- /dataset/Close_Active_Process/Close_Process="unchecked" and ((/dataset/Permit_Status="Permit Generated" and (/dataset/_fs_action="Save Changes" or /dataset/_fs_action="Waive Fee")) or /dataset/_fs_action="Generate Permit")
To convert that to Layman's terms:
- If the last submission action was "Save Changes" and the Status is NOT 'Permit Generated', and the "close process" checkbox is unchecked
- The last submission action = 'Permit Generated'
- The last submission action = 'Void Permit' OR any submission action with the 'close process' checkbox checked
- The 'Close Process' checkbox is unchecked, and the user action is 'Waive Fee' OR 'Save Changes', while the Status = 'Permit Generated'; this path is also taken if 'Close Process' is unchecked and the user action is 'Generate Permit.'
If I ONLY have #1 attached to the gateway, it will work just fine. As soon as I reattach ANY of the other options, the logic fails and the task either terminates or becomes suspended (depending on which version of Forms I'm using; we're transitioning our Test environments to 11).
I've tried saving the last submission action in a variable on the Form itself and using that, but that didn't work either.
Does anyone else see what I don't?