Skip to content

tdegrunt/jools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Jools

What is Jools?

Jools is a forward chaining Business Rules Engine (BRE), currently implemented as an inference engine.

JSON Rules

Jools uses JSON rules. Rules consist of a descriptive name, one or more conditions and one or more consequences. Jools allows for very expressive rules, take for example the following:

{
  "name": "say hello to Dave",
  "condition": 
    function(name) {
      return name == "Dave";
    }
  ,
  "consequence": 
    function(name) {
      console.log("Hello " + name);
    }
}

Provided the following fact, the rule would output "Hello Dave" to the console:

{
  "name": "Dave",
  "email": "[email protected]"
}

About

JavaScript Rule Engine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published