Included samples
Begin with working database-connected models.
Rule DB is included in the standard OpenRules installation. Find its examples in openrules.samples/DB. We recommend analyzing these models first:
- Evaluate Orders
- Unpaid Orders
- SQL Inside Rules — combines the two previous models
- SQL Outside Rules
- Soldier Payments

Your own model
Copy an example and replace its business logic.
To create a database-connected decision model, copy the Evaluate Orders folder and rename it for your problem—for example, MyDBModel. In pom.xml, replace <artifactId>EvaluateOrders</artifactId> with <artifactId>MyDBModel</artifactId>.
First set up the database. Then run test.bat to generate and execute the model, and replace the sample tables in rules/DecisionModel.xlsx with your own logic.
