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

Question

Question

How can I use Contain in a Exclusive Gateways condition ?

asked on July 31, 2019

Hi all,

 

In my Form's process, I'm using a Exclusive Gateways to choose the right way.

I have some difficulty with conditions because my Field to check is in a Table and it can have multi values.

e.g :

In my Exclusive Gateways, I would like to load the Form A if my variable contain "Chef de Section" but my condition only have mathematical operations.

 

e.g :

 

How can I do if I want something like that :

and

 

Thanks in advance.

Regards

 

0 0

Replies

replied on August 1, 2019 Show version history

Hi Oliver,

When conditional expression checks if variable inside table matches a value, it would return true if any of the table rows matches the value.

So you could just use /dataset/Table/Column_1="A" to test if any Column_1 inside Table equals to "A".

3 0
replied on August 1, 2019

How long has that been the case? I’ve never had any luck using tables in gateway conditions, but I guess it must have been the type of evaluations I was using.

0 0
replied on August 1, 2019

The conditional expression used XML query expression against a list of variables in xml format, so the evaluation follows XQuery Comparisons https://www.w3schools.com/xml/xquery_syntax.asp

2 0
replied on August 1, 2019

Good to know! Thanks for the extra information!

0 0
replied on August 1, 2019 Show version history

There is no option for "contains" currently, but based on Rui's comments you don't actually need one.

Create a hidden field on your form, and use a calculation in that field to check if the table has the target value, then use that hidden field in your gateway instead.

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

Sign in to reply to this post.