This package is an Otter Framework Module.
This module provides a rule engine that can be executed on your Otter application to customize your application (translations, placeholders and configs) based on a json file generated by your CMS.
ng add @o3r/rules-engine
[!WARNING] This module requires @o3r/core to be installed.
To facilitate the understanding of the usage of the rule engines, the documentation has been split in several sessions:
- integration
- cms-json-imports
- create-custom-fact
- debug-panel
- debug
- dedicated-component-ruleset
- performance-metrics
- placeholders
Several examples of the rules engine usage are available on the following links:
Otter framework provides a set of code generators based on angular schematics.
Schematics | Description | How to use |
---|---|---|
add | Include Otter rules-engine module in a library / application. | ng add @o3r/rules-engine |
rules-engine-to-component | Add rules-engine to an Otter component | ng g rules-engine-to-component |
facts-service | Generate a facts service | ng g facts-service |
operators | Generate an operator | ng g operator |
More details regarding the way the rules engine is working can be found in the documentation.