Evaluation Version

Evaluate Standard Decision Projects and Create Your Decision Models

 
Evaluating OpenRules® Decision Models

OpenRules
® comes with multiple sample projects that demonstrate how to create decision models. You may look at the proper decision projects right from this page without necessity to download or install anything. Many projects are also described in detail in the Getting Started document and other Tutorials.

To evaluate the decision projects, simply click on the Excel and Java files in the first column below. Usually a decision is described in the file Decision.xls or Main.xls and related rules are presented in the file Rules.xls. The proper glossary with decision variables and business concepts can be found in Glossary.xls, while test data - in Data.xls. Hopefully, you will be able to predict the execution results but you will always find them in the file results.xls.
Project  Project Description
DecisionHello

rules/main/Decision.xls
rules/include/Rules.xls
rules/include/Glossary.xls
rules/include/Data.xls
src/hello/Main.java
results.txt

This is a basic decision project that demonstrates how to develop a simple decision model that should decide how to greet a customer during different times of the day. This decision model might be a part of an interactive voice response (IVR) system. For example, if a customer Robinson is a married woman and local time is 14:25, we want our decision model to produce a greeting like "Good Afternoon, Mrs. Robinson!"

This project uses only one Java file Main.java to execute this decision model. All other business objects and test data are described in Excel tables.

DecisionHelloJava

rules/main/Decision.xls
rules/include/Rules.xls
rules/include/Glossary.xls
rules/include/Data.xls
src/hello/Main.java
src/hello/Customer.java
src/hello/Response.java
results.txt

This decision project is similar to the project "DecisionHello" with one difference: test objects are defined in Java instead of in Excel. It also demonstrates various features such as: validating phones, SSNs with regular expression, using Java methods inside Excel, formatting results, and more.

DecisionHelloWithDate

rules/main/Decision.xls
rules/include/Rules.xls
rules/include/Glossary.xls
rules/include/Data.xls
src/hello/Main.java
src/hello/DateDiff.java
results.txt

This decision project is similar to the project "DecisionHello" but it also demonstrates how to define and compare dates and utilize your own Java methods such as to calculate a difference between dates.

DecisionHelloXML

rules/main/Decision.xls
rules/include/Rules.xls
rules/include/Glossary.xls
rules/include/Data.xls
data/XmlCustomer.xml
src/hello/Main.java
results.txt

This decision project is similar to the project "DecisionHello" but it also demonstrates how to define and get data from an external XML file XmlCustomer.xml. 

DecisionHelloDB

rules/main/Decision.xls
rules/include/Rules.xls
rules/include/Glossary.xls
rules/include/Data.xls
db/TestDB.mdb
src/hello/Main.java
src/hello/MainDatabaseIterator.java
src/hello/Customer.java
src/hello/Response.java
results.txt

This decision project is similar to the project "DecisionHello" but it also demonstrates how to define and get data from a relational database such as MS Access, MS SQL or Oracle.  The test data comes from a database (see db/TestDB.mdb) that should be added to the system Data Sources under the name "TestDB". In this example we assume that this database is created using MS Access. It should contain a table "Customers" with the following fields:

- CustomerName

- MaritalStatus

- Gender

- Age.

There two different DB interfaces defined in the standard project com.openrules.tools:

1) TestDB.java and Main.java that is based on DbUtil

2) MainDatabaseIterator that is based on DatabaseIterator.

DecisionModelPrimer

src/hello/Main.java
rules/main/DecisionModel.xls
rules/include/Rules.xls
rules/include/Glossary.xls
rules/include/Data.xls
results.txt

This decision project contains an implementation of The Decision Model primer described at http://openrules.com/decision_model_primer.htm

DMN 1.0 Primer

src/loan/Main.java
src/loan/PMT.java
repository/Process.xls
repository/Glossary.xls
repository/Data.xls
repository/Decisions/AffordabilityRules.xls

repository/Decisions/ApplicationScoreRules.xls
repository/Decisions/BureauRules.xls
repository/Decisions/DeclineAcceptRules.xls
repository/Decisions/EligibilityRules.xls
repository/Decisions/ReviewRules.xls
repository/Decisions/RoutingRules.xls
reports
 
results.txt

This decision project contains an implementation of the primer example for the OMG standard DMN described at http://openrules.com/dmn_primer.htm

 
DecisionPatientTherapy

src/healthcare/Main.java
rules/DecisionPatientTherapy.xls
results.txt

This decision project contains an implementation of the decision model "Determine Patient Therapy" primer described at http://openrules.com/pdf/Tutorial.DecisionPatientTherapy.pdf

DecisionCreditCardApplicaion

src/credit/card/application/Main.java
rules/main/Decision.xls
rules/include/Data.xls
rules/include/DemographicSuitabilityRules.xls
rules/include/Glossary.xls
rules/include/EligibilityRules.xls
reports
results.txt

This is another DMN decision project described at http://openrules.wordpress.com/2014/01/08/another-dmn-decision-model-executable/

DecisionBanking

src/upsell/Main.java
rules/DecisionBanking.xls
results.txt

This decision model demonstrates how complex up-sell rules can be organized in simple decision tables. While the presented rules are using financial products, lists of products and services can be easily adjust to any industry

DecisionLoan

rules/main/Decision.xls
rules/include/Rules.xls
rules/include/Glossary.xls
rules/include/Data.xls
src/loan/Main.java
results.txt

This decision model demonstrates business rules for loan pre-qualification. It implements a use case provided by KPI, http://www.kpiusa.com.


DecisionVacationDays

src/vacation/Main.java
rules/DecisionVacationDays.xls
results.txt

This decision model calculates vacation days for different employee categories according to the following rules:

The number of vacation days depends on age and years of service.

Every employee receives at least 22 days.

Additional days are provided according to the following criteria:

1) Only employees younger than 18 or at least 60 years, or employees with at least 30 years of service will receive 5 extra days.

2) Employees with at least 30 years of service and also employees of age 60 or more, receive 3 extra days, on top of possible additional days already given.

3) If an employee has at least 15 but less than 30 years of service, 2 extra days are given. These 2 days are also provided for employees of age 45 or more. The 2 extra days can not be combined with the 5 extra days.

This example has been provided by  Prof. J. Vanthienen 

Decision1040EZ

src/taxreturn/Main.java
rules/include/Rules.xls
rules/include/Glossary.xls
rules/include/Data.xls
rules/include/1040EZTaxTable.xls
pdf/f1040ez.pdf
results.txt

This decision project contains an implementation of the decision model described at the tutorial "Preparing a Tax Return using OpenRules Decision Tables"   

DecisionAutoInsurance

src/insurance/Main.java
src/insurance/Address.java
src/insurance/Discount.java
src/insurance/Driver.java
src/insurance/DriverOrVehicle.java
src/insurance/Policy.java
src/insurance/Usage.java
src/insurance/Vehicle.java
src/insurance/Response.java
rules/main/Decision.xls
rules/include/Rules.xls
rules/include/Glossary.xls
rules/include/Data.xls
rules/include/DiscountRules.xls
rules/include/DriverDesignationRules.xls
rules/include/PremiumCalculationRules.xls
rules/include/ValidationRules.xls
results.txt

This decision project shows how to organize complex rules-based calculations creating an auto insurance premium calculator. It demonstrates how to use OpenRules' data modeling mechanism for complex data structures with internal dependencies. It also demonstrates complex calculation methods.

OpenRules Decision Templates

openrules.config/DecisionTemplates.xls
openrules.config/DecisionTableExecuteTemplates.xls

The folder openrules.config contains the standard OpenRules templates used by all other decision tables. You do not need to even look at them, but you may need this folder to be copied to your remote server when you want to execute your model remotely

 

You also may use these examples as prototypes for your own decision projects, that you may create locally, then upload them to an OpenRules public directory, execute them remotely and analyze the produced results. To do this click here.

If you want to try other OpenRules® capabilities (like integrating your decision model with your own Java objects, debugging, producing execution reports in HTML, and more), you may download the evaluation version or go to the complete production download with all additional components.

Click here to receive the source code.

Feel free to contact OpenRules® technical support at support@openrules.com with any questions or issues you may have. See also the Discussion Forum.

 

 

 

Welcome
Welcome
Business Rules Repository Decisions Top-Down Semantics In Concert Business Analyst Decisioning
Welcome
themed object
Business Rules - Time to Excel
Bookmark and Share