Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tdegrunt/jools
JavaScript Rule Engine
https://github.com/tdegrunt/jools
Last synced: 5 days ago
JSON representation
JavaScript Rule Engine
- Host: GitHub
- URL: https://github.com/tdegrunt/jools
- Owner: tdegrunt
- Created: 2011-05-09T19:26:28.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-05-10T19:49:33.000Z (over 13 years ago)
- Last Synced: 2024-10-07T17:34:56.889Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 116 KB
- Stars: 56
- Watchers: 7
- Forks: 9
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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]"
}