@o3r/rules-engine 11.3.0-prerelease.35 → 11.3.0-prerelease.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -6
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -16,8 +16,8 @@ This module provides a rules engine that can run on your user's browser to custo
|
|
|
16
16
|
[//]: # (Should we target placeholder or the component npmjs, and we add a section on the placeholder there?)
|
|
17
17
|
[placeholders](https://github.com/AmadeusITGroup/otter/blob/main/docs/components/PLACEHOLDERS.md) and [configurations](https://www.npmjs.com/package/@o3r/configuration)) of your application at runtime.
|
|
18
18
|
|
|
19
|
-
The rules engine interprets a list of [actions](https://github.com/AmadeusITGroup/otter/tree/main/docs/rules-engine/README.md#action) to execute based on the evaluation of [Rulesets](https://github.com/AmadeusITGroup/otter/tree/main/docs/rules-engine/README.md#ruleset)
|
|
20
|
-
and their conditions. Conditions are logical expressions relying on [operators](https://github.com/AmadeusITGroup/otter/tree/main/docs/rules-engine/README.md#operator) and variables we call
|
|
19
|
+
The rules engine interprets a list of [actions](https://github.com/AmadeusITGroup/otter/tree/main/docs/rules-engine/README.md#action) to execute based on the evaluation of [Rulesets](https://github.com/AmadeusITGroup/otter/tree/main/docs/rules-engine/README.md#ruleset)
|
|
20
|
+
and their conditions. Conditions are logical expressions relying on [operators](https://github.com/AmadeusITGroup/otter/tree/main/docs/rules-engine/README.md#operator) and variables we call
|
|
21
21
|
[facts](https://github.com/AmadeusITGroup/otter/tree/main/docs/rules-engine/README.md#fact).
|
|
22
22
|
|
|
23
23
|
You can store your list of Rulesets on a static JSON file.
|
|
@@ -29,7 +29,7 @@ For example, you could consider leveraging this feature to display assets based
|
|
|
29
29
|
A/B testing on your components.
|
|
30
30
|
|
|
31
31
|
You will find more information on the concepts behind the rules engine in its [dedicated documentation](https://github.com/AmadeusITGroup/otter/tree/main/docs/rules-engine/README.md).
|
|
32
|
-
For a demonstration of the rules engine capabilities, you can refer to the [live example](https://amadeusitgroup.github.io/otter/#/rules-engine)
|
|
32
|
+
For a demonstration of the rules engine capabilities, you can refer to the [live example](https://amadeusitgroup.github.io/otter/#/rules-engine)
|
|
33
33
|
in the Otter showcase.
|
|
34
34
|
|
|
35
35
|
## How to install
|
|
@@ -44,7 +44,7 @@ ng add @o3r/rules-engine
|
|
|
44
44
|
## How to use
|
|
45
45
|
|
|
46
46
|
The package exposes the ``RulesEngineRunnerService`` that can drive all the Otter customization-based services
|
|
47
|
-
in order to personalize the user experience.
|
|
47
|
+
in order to personalize the user experience.
|
|
48
48
|
On its own, the service will do nothing and will need __action handlers__ to register with the list of supported actions
|
|
49
49
|
and their implementation.
|
|
50
50
|
|
|
@@ -59,7 +59,6 @@ Several examples of the rules engine usage are available on the following links:
|
|
|
59
59
|
|
|
60
60
|
- [Basic rule](https://github.com/AmadeusITGroup/otter/tree/main/docs/rules-engine/examples/basic-rule.md)
|
|
61
61
|
- [Rule with complex fact](https://github.com/AmadeusITGroup/otter/tree/main/docs/rules-engine/examples/complex-fact.md)
|
|
62
|
-
- [Rule with custom operator](https://github.com/AmadeusITGroup/otter/tree/main/docs/rules-engine/examples/custom-operator.md)
|
|
63
62
|
- [Rule with Nested Conditions](https://github.com/AmadeusITGroup/otter/tree/main/docs/rules-engine/examples/nested-conditions.md)
|
|
64
63
|
- [Rule using runtime facts](https://github.com/AmadeusITGroup/otter/tree/main/docs/rules-engine/examples/runtime-facts.md)
|
|
65
64
|
|
|
@@ -78,7 +77,7 @@ Otter framework provides a set of code generators based on [Angular schematics](
|
|
|
78
77
|
A whole section of the [Otter Chrome Devtool extension](https://chromewebstore.google.com/detail/otter-devtools/aejabgendbpckkdnjaphhlifbhepmbne) is dedicated to the debug of the rules engine with
|
|
79
78
|
a visual representation of your Rulesets and a history of the run, conditions met and actions applied.
|
|
80
79
|
|
|
81
|
-
Find more information on the tool in the [Otter Chrome Devtool extension documentation](https://github.com/AmadeusITGroup/otter/blob/main/docs/dev-tools/chrome-devtools.md)
|
|
80
|
+
Find more information on the tool in the [Otter Chrome Devtool extension documentation](https://github.com/AmadeusITGroup/otter/blob/main/docs/dev-tools/chrome-devtools.md)
|
|
82
81
|
and its [dedicated section in the rules engine documentation](https://github.com/AmadeusITGroup/otter/blob/main/docs/rules-engine/how-to-use/chrome-extension.md).
|
|
83
82
|
|
|
84
83
|
## External links
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@o3r/rules-engine",
|
|
3
|
-
"version": "11.3.0-prerelease.
|
|
3
|
+
"version": "11.3.0-prerelease.37",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
"@ngrx/entity": "~18.0.0",
|
|
50
50
|
"@ngrx/store": "~18.0.0",
|
|
51
51
|
"@ngx-translate/core": "~15.0.0",
|
|
52
|
-
"@o3r/core": "^11.3.0-prerelease.
|
|
53
|
-
"@o3r/extractors": "^11.3.0-prerelease.
|
|
54
|
-
"@o3r/logger": "^11.3.0-prerelease.
|
|
55
|
-
"@o3r/schematics": "^11.3.0-prerelease.
|
|
52
|
+
"@o3r/core": "^11.3.0-prerelease.37",
|
|
53
|
+
"@o3r/extractors": "^11.3.0-prerelease.37",
|
|
54
|
+
"@o3r/logger": "^11.3.0-prerelease.37",
|
|
55
|
+
"@o3r/schematics": "^11.3.0-prerelease.37",
|
|
56
56
|
"@schematics/angular": "~18.2.0",
|
|
57
57
|
"globby": "^11.1.0",
|
|
58
58
|
"jasmine": "^5.0.0",
|