Questions tagged [node-rules]

Node-rules is a forward chaining Rules Engine, written on node.js. It supports writing rules in JSON format.

node-rules

Business Rules Engine for JavaScript/Node.js

About

Node-rules is a forward chaining Rules Engine, written on node.js.

How to install

install this via

npm install node-rules

Its Open Source

find the source at https://github.com/mithunsatheesh/node-rules

Find it on NPM

find it on npm at https://www.npmjs.com/package/node-rules

3 questions
3
votes
1 answer

Converting a rule from node-rules engine to nools rule engine

var RuleEngine = require('node-rules'); var titan = { "product": "Titan", "amount":"500", "base":1, "conversation":0.91, }; var oxicash = { } var rules = [{ "name": "Product rule", …
A.H
  • 129
  • 2
  • 10
1
vote
1 answer

Reading Multiple Attribute in JSON using node js

I am able to validate a single JSON object, but I want to validate an array of JSON objects like below, and console the invalid Pincode city name: var RuleEngine = require("node-rules"); var R = new RuleEngine(); var fact = [{ "name":…
Dusky Dood
  • 197
  • 3
  • 13
0
votes
2 answers

Converting callback to Promise when I dont have the return value

I am working on server that uses hapi and executes rules from node-rules. I have a callback which is called by the R.execute method from node-rules. I need to return a Promise from the exec method as the result of executing the callback. Code const…
vamsiampolu
  • 6,328
  • 19
  • 82
  • 183