You are viewing limited content. For full access, please sign in.

Question

Question

How to troubleshoot conditionals in Forms

asked on November 2, 2018 Show version history

I have a conditional decision in forms with 2 routes. One if Approval Decision = Denied and a no condition Else path.

Forms is taking the Else path but the token for Approval Decision = Denied.

In workflow I use the conditions tab to see why it would ever think that Denied = Denied is False. How can I troubleshoot this in forms?

 

Conditional Decision Configuration has a Path, for If Any Is True, including Approval Decision = Denied

Tokens View shows Denied

0 0

Replies

replied on November 2, 2018

Chad, can you select the Exclusive Gateway and post a screenshot of it's configuration?

0 0
replied on November 2, 2018

0 0
replied on November 2, 2018

Does the Denied value on the form have an extra space or anything?

0 0
replied on November 2, 2018

No, it is space free. Here is the highlighted token: 

0 0
replied on November 2, 2018

Does the outflow work if it's just /dataset/Approval_Decision="Denied" without the OR? 

0 0
replied on November 2, 2018

Not sure, the OR implying,  If Any, has always been there. I would need to reproduce all the possibilities in a test environment. I feel like there is no where to troubleshoot the process in forms, like we do with workflow, all I have is the design, the path taken, and the token values. If it does not take the proper path I can't see why, normally if it is a mistake in logic I can just search until I find the mistake, but in this case I need to see why the condition was false since I can't find any mistakes.

0 0
replied on November 2, 2018

Did this routing work at some point, but stopped working for some reason? My test would determine if the problem lied within the /dataset/Approval_Decision="Denied" part or in the conditional as a whole. If /dataset/Approval_Decision="Denied" works when the field is Denied, then you could try using parentheses (Condition 1) OR (Condition 2). Also try setting condition 2 to something that's always true or always false to see if it is evaluated correctly. 

You should be able to do this on a copy of the process, get the routing condition right, then bring it over to your active process. 

Worst case scenario, if you get /dataset/Approval_Decision="Denied" working by itself, you can add another outflow path for /dataset/Approval_Decision="Withdrawn", have it go to an exclusive gateway, then on to the same outflow as the denied branch. This is effectively the same thing, but doesn't rely on the OR or other syntax in the conditional. 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.