json-rules-engine
json-rules-engine copied to clipboard
A rules engine expressed in JSON
I'm trying to figure out what the Engine does it a Fact function throws an exception. As far as I can tell, there is no event handler for this and...
event: { type: 'error', params: { message: 'Player has fouled out!' } } In the event object, I have given `error` as the value of the type property. It is...
I need to ensure a parameter, if provided, does not contain a falsy value (`''`, `0`, `false`, `null`, `undefined`, etc.). As far as I can tell, the "notEquals" operator would...
If I have a Rule condition such as: ```js { fact: 'related-study-design', params, path: '$.id', operator: 'equal', value: { fact: "active-study-design", params, path: '$.id' } } ``` Where I'm comparing...
We're working on better decomposing our facts and rules, and have found that (due to our data model hierarchy), we're having to re-stipulate the same facts in multiple rules. Is...
In `almanac` you have debug lines like this: ```js (0, _debug2.default)('almanac::constructor initialized runtime fact:' + fact.id + ' with ' + fact.value + ''); ``` This line does string concatenation...
I've looked across the documentation, examples and existing issues and, if this has been previously discussed, I'm missing it. Is it possible to use one or more Fact as `params`...
Hello, I'm working on a project in node that uses your rule engine, and I've noticed something that I can't understand. The Rule class definition implements: `export class Rule implements...
Is it possible to retrieve a list of facts which were not used / triggered by any rule in the engine? Pseudo code: ``` facts = { A: true, B:...