Skip to content

Decision tree with json serializer, with library and all you need

License

Notifications You must be signed in to change notification settings

mattskinosix/jdtree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Work in progress!!!

jdtree

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

Multithreading

All roots start a new thread

Example

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"
                    }
                 }
              ]
           }
        ]
     }
  }

About

Decision tree with json serializer, with library and all you need

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages