DMN Input Value from LOV fields

I have a use case, where i need to validate whether the chosen value from LOV (List of Values) is valid or not .
Since the LOV may contain more than 50 unique values, it is hard to mention those values in DMN input columns individually. it also makes DMN to look clumsy. Can someone suggest how to achieve this?

Hi @arunkumar,

I don’t understand your use case completely. Can you please provide an example?
When is a value valid?
Do you need to check a single value or a list of values?

Best regards,
Philipp

Hi @Philipp_Ossler
Please check the below example:
Say, There is a field ‘List of Countries’ in an application which has a lens icon to select any country of users choice. Now in DMN input columns,how we need to check the selected/ keyed in value is actually a value from the list or not? (i.e.,valid or invalid)

An example image of the field:image

Hi @arunkumar,

you could use an expression language (e.g. JavaScript, JUEL, Groovy) to check if the list contains the value. This may look like:
validCountries.contains(selectedCountry).

As an alternative, you can use the FEEL extension and write a FEEL expression like:
list contains(validCountries, selectedCountry).

Does this help you?

Best regards,
Philipp

2 Likes

Perhaps you could check the countries in another decision table and combine it in a Decision Requirement Diagram?

Cheers, Ingo