In DMN i would like to have output in boolean datatype , If none of rules matches can we default to false?

I created a DMN where output type is boolean …

In my case if my input value is Integer - either 37,38,39,57 it should return output as TRUE .

In case if the input value is not with above set i would have to have o/p FALSE.

Hi,

Have a look at Hit Policy [1]. In particular, use the First hit policy and ensure the last rule is empty on all inputs and sets the output to false.

regards

Rob

[1] https://docs.camunda.org/manual/7.7/reference/dmn11/decision-table/hit-policy/#first-hit-policy

1 Like

thank you , solved my problem .