Hi Team,
Need to validate the possible values that are used in dmn. I have hundreds of input variables for E.g. One example can be state codes of US used in DMN.
I need to validate that user enters only system supported values like “AL” (for Alabmaa),“AK” (for alaska )
Consider the below trimmed version of dmn.
how can i validate that input values are valid ?
It depends on your concrete use case.
For a simple case, you would have one rule for each valid case. Either you add a default rule for invalid cases or handle if no rule matches.
If there are too many cases, you could extract the check into a separate DMN decision table.
Or, if there are too many cases for a DMN to maintain (i.e., 100+ rules), you should consider moving the check to an external system. For example, verify the inputs first in a BPMN process using an external service and invoke the DMN afterward.