Decision Intelligence Platform

Decision Model “Up-Sell Rules”

Business Logic

This decision model demonstrates how deal with arrays of objects using relatively complex up-sell rules. Presented rules use lists of products and services can be easily adjust to any industry.

The ultimate goal of this decision model is to up-sell additional products to a customer based on his/her profile and the products he/she already has. Here is the main decision table “DetermineOfferedProducts”:

Here are the rule to define customer profile:

Here are the up-sell rules:

To complete our decision model we need to put all decision variables in the Glossary:

Testing Decision Model

Test cases with expected results defined in this table:

It refers to the DecisionData table “customers:”

We also created the “Environment” table:

As we placed all these tables inside one file “rules/DecisionUpSellProducts.xlsx” we need to refer to this file in the standard file “project.properties“:

To execute our test-cases, we may simply double-click on the standard bat-files test.bat that will automatically determine all dependencies within the decision model, transforms the model in the executable code, and execute the model against all test-cases. Here are the execution results for the last test-case:

Here is the HTML report from the file “testCases-Mary.html” automatically generated in the folder “target/reports”. It explains which rules were actually executed and why: