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

Question

Question

Does a Conditional Decision read multi-value field?

asked on February 4, 2016

I have a Conditional Decision tree that is making its decision based off a multi-value field but it is not making the right decision.

 

I have the decision set up to look for two specific words in the field.

 

 

With my test files, some should be true some should be false but it sends them all down the same branch.

 

Here is what I get when I run the workflow.  Is there something I am not seeing?  It claims that this field DOES NOT contain the phrase “Worker Responded” but it clearly DOES contain the phrase.  Do I have to use wild characters in my conditional statement?

 

 

Any thoughts would be greatly appreciated.

 

Thanks.

0 0

Answer

SELECTED ANSWER
replied on February 4, 2016

Yes, you would have to create a new token.

Right-click the token in the Value editbox and choose Token Editor from the context menu.

1 0

Replies

replied on February 4, 2016

"Contains"/"Does not contain" conditions do not work as expected with multi-value fields because the values are compared individually. "Process Started 2/4/2016" does not contain "Worker responded", so the condition evaluates to true. On the other hand, "contains Worker Responded" would also evaluate to true on this case because the second value would match.

You would have to flatten the multi-value token to a single value token by using a delimiter for the condition to work like you want it.

0 0
replied on February 4, 2016

Would I create a new token to do this?  I tried pattern matching and couldn't make that work either.

 

0 0
SELECTED ANSWER
replied on February 4, 2016

Yes, you would have to create a new token.

Right-click the token in the Value editbox and choose Token Editor from the context menu.

1 0
replied on February 4, 2016

instead of using all values, use a loop and inside that loop use each value to compare against what you require. 

0 0
replied on February 4, 2016

A loop is less efficient since it would go through all values even when it finds a match.

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

Sign in to reply to this post.