hi there,
i am running a DMN engine to execute my decision rules,
the issue is follows -
dmn rule in json format is
{
inputexpression:{}…
outputexpressions:{}…
rules:[
{
“output1”: “8219d481-5ec3-4f42-8c50-8fc2016cbd69”,
“input1”: “${CodeType==‘a5d9f842-7c46-48b5-bbae-0057a2212a69’&&CodeFieldType==’“null”’}”
}
]
}
note: i am using juel expressions here
now my input data is
data = {CodeType:‘a5d9f842-7c46-48b5-bbae-0057a2212a69’,some other values…
}
the thing is that is my input data doesn’t have field CodeFieldType but my rule has field CodeFieldType.
in this case it will definitely throw error saying property not found,
but what i want is that my rules should still execute by ignoring the fields which are mention in input data,
is there any way to do it like in default it should set null or empty values when there are no fields mentioned in input data but rules do exists the field.
thanks.