Expression to scan for set of Keywords in the input text


#1

Need help in writing an expression (JUEL expression is preferred) that can be entered as Input Entry in the DMN table

Requirement -
The expression shall match (true) only when the following keywords are NOT found in the input string.
“ABC123”
“XYZ456”
The variable name is “userfeed”. I have tried with the following JUEL expression, but it didn’t work.

${ ! (userfeed.contains(“ABC123”) || userfeed.contains(“XYZ456”)) }


#2

I figured out that the variable name is wrong in the expression.
It worked after correcting the variable name.