String Contains in Decision Table

HI All,

I am looking for some help on using String contains expression in one the input column in my decision table. Objective is to check if the input value contains the cell input text or not. I am trying it with Javascript or JUEL but may be I am not doing it correctly. Any help is really appreciated

Hi @sameasyou,

Below is an example using FEEL language.

Notice: The question mark symbol (?) in the expression represents the input value
contains(lower case(?), "good")

contains_example.dmn (1.7 KB)

Thank you so much @hassang, it worked for me. By any chance, do you know how can this achieved if we want to use JUEL or Javascript?

Hi @sameasyou,

Below is the same using JavaScript language.

contains_example_js.dmn (1.8 KB)

1 Like