Json Based DMN Rule Engine. The purpose of this library is to parse a decision tree/table created with jdtree-ui And give you the result node based on input attributes
All roots start a new thread
Given this json
if the input is temperatura = 9 then the output was COLD
if the input is temperatura = 11 then the output was HOT
{
"root":{
"variableType":"number",
"variableName":"temperatura",
"leafs":[
{
"id":"f7dff1c4-08ea-424e-90b2-a002053ac651",
"value":"10",
"operator":"greater",
"leafs":[
{
"result":{
"ciao":"HOT"
}
}
]
},
{
"id":"34646224-ba40-40e3-a553-ffaca0e35d16",
"value":"10",
"operator":"less",
"leafs":[
{
"result":{
"ciao":"COLD"
}
}
]
}
]
}
}