DescriptionThe regular expression based pattern matching conditioning is a powerful way to do workflow automation by giving the workflow designer a way to control whether actions should be done or not based on the issues related to the transition. Pattern matching conditioningThis takes advantage of the Substitution variables to provide a very flexible way to condition based on matching issue information with a regular expression (regex). This may be a little bit more complex/less usable for simple cases, but can be very powerful for covering many use cases. The simple cases can still be done with little knowledge of regular expressions. All the standard Substitution variables can be used. Regex qualifiersQualifiers are used to make is easier to construct a regex pattern that matchers the user scenario.
ExactWhen looking for patterns, one can either find something that matches the pattern or you can do an exact match on the pattern. Doing find is usually easier and covers most use cases, but is not as precise as doing an exact match. The default is Find. Select the Exact checkbox if needed to be more precise. Value | Pattern | Find | Exact Match |
---|
abc | abc | | | abc | ab | | | abc | ac | | | abc | b | | | abc | .*b.* | | |
LiteralRegex has various characters that have special meaning. These characters need to be escaped (using \) if you want the character to not have special meaning. In some cases, you want to ignore all special character meaning and match on the literal string. Use the Literal checkbox to treat the pattern as a literal string. Value | Pattern | Normal | Literal |
---|
abc | .bc | | | .bc | .bc | | | abc | abc* | | | ab | abc* | | | ab | abc+ | | |
NegativeRegex can be difficult when you want to condition on something not matching. The Negative checkbox makes it easy to reverse the condition so that the condition is true if the match is false and vice versa. Value | Pattern | Normal | Reverse |
---|
abc | abc | | | xyz | abc | | | | \S+ | | |
Case sensitivityRegex patterns, by default, are case sensitive. Use the embedded flag (?i) to get case insensitive matching. Value | Pattern | Normal |
---|
ABC | abc | | ABC | (?i)abc | |
Or conditionsValue | Pattern | Normal | Notes |
---|
a | a|b | | | b | a|b | | | abc | (abc)|(xyx) | | Use ( ) or (?: ) for grouping |
|