nested-rules-engine
Advanced tools
Comparing version 1.0.0-beta4 to 1.0.0-beta5
{ | ||
"name": "nested-rules-engine", | ||
"version": "1.0.0-beta4", | ||
"version": "1.0.0-beta5", | ||
"repository": "github:ayonious/nested-rules-engine", | ||
@@ -5,0 +5,0 @@ "description": "Nested Conditional Rules Engine", |
@@ -79,23 +79,22 @@ # Conditionally Nested Rules Engine | ||
1. `variables` Collection of values on which rule engine will execute | ||
* `variables` Collection of values on which rule engine will execute | ||
You can change these collection of variables (Add/Edit/Delte them) as you traverse the decision tree of rules. | ||
2. `functions` Collection of functions that decide which way the tree should be traversed. | ||
* `functions` Collection of functions that decide which way the tree should be traversed. | ||
* In case the function indicates a final decision in tree (leaf of decision tree): Output can be anything that you want to see as `result` | ||
* In case the function is makes an intermediate decision (branch of decision tree): | ||
if output is `true`: this means this branch should be traversed | ||
else: the function will be executed | ||
* In case the function indicates a final decision in tree (leaf of decision tree): Output can be anything that you want to see as `result` | ||
* In case the function is makes an intermediate decision (branch of decision tree): | ||
* if output is `true`: this means this branch should be traversed | ||
* else: the function will be executed | ||
3. `rules` Decision Tree that will be traversed by this Rule Engine | ||
* `rules` Decision Tree that will be traversed by this Rule Engine | ||
4. `options` | ||
* verbose(boolean): Makes Sure you get enough logs while engine goes through all decision tree | ||
* multiple(boolean): You can run multiple Decision Trees based on same inputs. Input sets are shared between each tree | ||
* `options` there are different options that you can provide to customize the execution nature | ||
* verbose (boolean): Makes Sure you get enough logs while engine goes through all decision tree | ||
* multiple (boolean): You can run multiple Decision Trees based on same inputs. Input sets are shared between each tree | ||
### Outputs | ||
`result`: Result of the engine execution. format of Result will be defined by you through `functions` | ||
* `result`: Result of the engine execution. format of Result will be defined by you through `functions` | ||
* `logs`: Detailed logs while engine got executed (by default its disabled) | ||
`logs`: Detailed logs while engine got executed (by default its disabled) | ||
## Hard Examples | ||
@@ -102,0 +101,0 @@ 1. Example with verbose output, multiple executions [Find Here] (https://github.com/ayonious/nested-rules-engine/blob/master/test/multirun-verbose-example.js) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9081
105