Rule DB is included into the standard installation of OpenRules Decision Intelligence Platform. You may analyze examples of how the rule projects communicate with a database by looking the installed folder “openrules.db“. This folder includes sub-folders for sample decision models:
- Evaluate Orders
- Unpaid Orders
- Sql Inside Rules – combines two previous models
- Sql Outside Rules
- Soldier Payments.
We recommend you to analyze these examples first.
When you want to create a new decision model with a database interface, copy the folder “Evaluate Orders” and give a new folder the name of your problem, e.g. “MyDBModel”. Replace <artifactId>EvaluateOrders</artifactId> with <artifactId>MyDBModel</artifactId> in the file “pom.xml”.
Before running this model you need to set up your database as described here.
Run “test.bat” to generate and execute your decision model. Start replacing the existing samples of the tables in the files “rules/DecisionModel.xlsx” using your specific logic.
