json-rules-engine icon indicating copy to clipboard operation
json-rules-engine copied to clipboard

A rules engine expressed in JSON

Results 80 json-rules-engine issues
Sort by recently updated
recently updated
newest added

### Add support for pipes to manipulate fact values. Here is an example of using a pipe to transform the balance currency from euros to USD and another one for...

As my app has scaled up, I began writing a lot of custom operators and needed the operator to perform more complex operations that used extra config to perform the...

- https://github.com/CacheControl/json-rules-engine/issues/362 - This could be a solution for this if we don't want to use any additional library like [superjson](https://github.com/blitz-js/superjson)

When we pass `BigInt` value as fact. Getting this error. Here is the sample code to reproduce this error. ``` /** * Setup a new engine */ const engine =...

I have object(s) that will introduce facts that also have 'child' objects (composition). There will be multiple facts that are aggregate values on the parent that are calculated from the...

Currently, when we use engine.stop() it will stop entire engine. what if i have 10 rules and running for array of inputs after first rule success i want to stop...

Suppose the fact is const fact={ id:1, username:'sureshk', student:[{name:'zbc',percentage:100},{name:'zb',percentage:10}], role:['coach','mentor'], sport:['hockey','base'] } and the rule should be rule criteria => (student.name ='zbc' AND student.percentage=100) AND id=1 AND username='sureshk' AND role...

Is it possible to have a rule that depends on the parent rule outcome? It is somewhat possible by using set conditions, but we need grouping where we can embed...

I have integrated json-rules-engine with a project I am working on and the performance seems much slower than I would expect. I'm using the package to do a simple lookup...

`RuleResult` has a `toJSON()` method ([source](https://github.com/CacheControl/json-rules-engine/blob/master/src/rule-result.js#L36)) The `RuleResult` interface declaration does not include this ([source](https://github.com/CacheControl/json-rules-engine/blob/master/types/index.d.ts#L127)). Also, there is no class declaration for RuleResult. The impact of this issue is felt...