License. Rule DB is freely available under the terms of the Open Source GNU Lesser General Public License (LGPL) allowing it to be used in commercial projects without limitations.
Download. To download and install Rule DB, click on one of the following links:
Unzip this file on your hard drive. The resulting folder “RuleDB” contains working examples of “Rule DB” projects that may serve as prototypes for your own projects – click here to learn how to do it. These projects work with the MySQL Sample Database that should be already installed. If you need help, see “Setting Up the Database“.
Running Standard Projects. Assuming that you have OpenRules Decision Manager already installed, you should be able to execute any project inside the folder “RuleDB” by a simple double-click on the file “test.bat” (for Linux or Mac use the file “test.sh”). Alternatively, you may import these projects to your Eclipse workspace, and run the provided Java tests directly from Eclipse.
Look at the project “SqlInsideRules” described in the introduction. When you click on the “test.bat” it will execute business rules “DefineTotals” and “DefineAlertSteps” with SQL queries defined inside the rules.
If you want to call business rules from your Java program, you may use JDBC with SQL to navigate through the database records and for each selected records invoke your business decision model. There are several examples like this one defined in the project “SqlOutsideRules“.
Any issues? Contact us at email@example.com and we will help.