I need to create a DMN table with word string matching capability. Something like String.contains() method. Is it possible to implement this as input in DMN.
example:
input == “iminINDIA”, input.stringcontains(“INDIA”); then return “INDIA”.
when you use the FEEL-Scala extension (e.g., via factory) then you can write contains(input,"INDIA") for input entry. See the example: feelContainsFunction.dmn (920 Bytes)
Do we need to any plugin to evaluate above DMN (feelContainsFunction.dmn) ?
I have tried downloading the above dmn, deploy and run but it throws error while evaluating.
Hi @Philipp_Ossler, i tried the approach mentioned by you, it works perfectly fine when the input string is not null, but it evaluates true even when input string is null. can you guide on how to use contains when input is null?
i want to see if we can do null comparison and contains comparison by using one condition only. Anyhow, thanks for your response, i already solved this by using like this: input!=null and contains(input,“INDIA”)