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

Question

Question

workflow, routing decisions with regular expressions

asked on March 21, 2014

Hello

I have documents that are being stored to my repository from Quick Fields. I want workflow to pick these documents up and process them. An index field that I would like

workflow to analyze is Account Number. If the account number is 3 digits or less OR 8 digits or more, I would like the workflow to terminate. I tried using a routing decision and uses "match regular expression" and its not working. I assume my expression is not right. Does anyone have an idea on how they would write this or if this would even work?

 

Thanks for the help.

Lindsey

0 0

Replies

replied on March 21, 2014

What version of Workflow are you using? I know some conditions were not properly being evaluated in a version or two.

 

Also, maybe try a Conditional Sequence instead of a decision. It sounds like you want it to terminate if it reaches certain conditions, but does not need to be it's own branch from the workflow process since it will just terminate if the condition is reached or bypass the sequence if the condition is not reached.

 

Also, you might want to store that field information by assigning it to a new token and using the token editor to apply a function called "Text Length". That will return the amount of characters in the inputted token, which you can then test in the conditions for the number it is

0 0
replied on March 21, 2014

Can you post the regular expression you tried?

 

Something like this should work:

^\d{1,3}$|^\d{8,}$

Here's a visualization of what it does:

 

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

Sign in to reply to this post.