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

Question

Question

Workflow conditional decision to find any that do not match a constraint

asked on July 29, 2019

Can I get a Workflow conditional decision to act only upon a field entry that does NOT match a specific contraint such as:  \w{1,2}-\d{2}-\d{3}-\d{2}-\w\d

Would love to have this workflow run weekly as a quality control tool.  Currently, it's just finding that everything doesn't match:

0 0

Answer

SELECTED ANSWER
replied on July 29, 2019

"does not equal" will look for a literal match. If you want to use regular expressions, you need to change your operator to "does not match regular expression".

1 0

Replies

replied on July 29, 2019

Looks like you are missing the "\" at the beginning of the expression?  Right before the first "w".

 

2 0
replied on July 29, 2019 Show version history

Right.  Good catch.  I fixed that and re-ran the workflow.  Still reported that all the test documents with this pattern did not match, when they actually do match.

Target document field shows:  

Note:  I did change the wf to allow for more than one value in that field (thus the change to "ForEachValue_Current Value"; and I also made it target just one document for this test.

0 0
SELECTED ANSWER
replied on July 29, 2019

"does not equal" will look for a literal match. If you want to use regular expressions, you need to change your operator to "does not match regular expression".

1 0
replied on July 29, 2019

That was it!  Sorry, I did not spot that one down below!  Thanks!

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

Sign in to reply to this post.