DataDrivenRulesEngine is a flexible and dynamic rule processing engine designed to evaluate business logic based on rules defined in JSON format. This project allows users to define complex conditions and actions without hardcoding them into the application, promoting modularity and maintainability.
- Load rules from JSON files
- Process conditions and execute actions
- Supports both integer and string comparisons
- Nested rule execution
To get started with OrientionData, follow these steps:
-
Clone the repository: Choose the technology you want to use (e.g., Python, JavaScript, C#, Ruby) and clone the corresponding folder: git clone cd
-
Install dependencies: Make sure to install any required dependencies for your chosen technology.
-
Define your rules: Create JSON files for your rules as per the expected format.
-
Run the application: Execute the main application file according to your chosen language.
Python 3.x JSON files for rule definitions
#Usage To use the rules engine, instantiate the OrientionData class and call the ProcessRulesOd method with the desired parameters.
Python
from OrientionData import OrientionData
od = OrientionData()
result = od.ProcessRulesOd(your_rule_definition, value1, value2)JavaScript