| ILOG Rules for .NET User Guides > ILOG Rule Team Server for SharePoint > Tutorial: Editing Decision Tables |
Tutorial: Editing Decision Tables |
PREVIOUS NEXT |
This tutorial explains how to use Rule Team Server to edit decision tables, including:
You need about 20 minutes to complete this tutorial.
Once you have checked out the Decision Table of the tutorial, you have the option of carrying out an equivalent tutorial in the ILOG Rule Solutions for Office environment. Consult the Tutorial section of the ILOG Rule Solutions for Office online help for more information.
| Note |
| You must have the ILOG Rules Tutorial Page entry in the Shared Documents document library to do this tutorial. If this entry is not available, contact your Rule Team Server Administrator. |
This tutorial uses the example of a car rental agency, EU-Rent Car Rental. The business rule application needs to handle rapidly evolving business policies that govern car rentals. For example, eligibility for car rentals depends on the age of the client. EU-Rent needs to keep track of the age limit policies for its branches across the United States, which vary from state to state.
This tutorial explains how to modify the rules used for determining rental eligibility.
| Note |
The scenario for this tutorial is inspired by the EU-Rent Car Rental use case specification, produced by the Business Rules Group (http://www.businessrulesgroup.org/brghome.htm).
|
In this step, you open and become familiar with the contents of a sample RuleDoc.
| Note |
| If the ILOG Rules Tutorial Page entry is not available, contact your Rule Team Server Administrator. |
Each row in the decision table is equivalent to a rule. To make decision tables more intuitive to read, cells that are shared by more than one rule are displayed as merged. Depending on the values required by the column, you modify the contents of a cell by either selecting values from a predefined list or typing directly.
In this step, you modify the three rules used to calculate eligibility for rentals in New Hampshire.
| Note |
| To change a value, click directly on the value in the cell, type in the new value in the field, and then press ENTER. |
The three rows for New Hampshire now translate into these rules, which you can view by clicking the row numbers (4, 5, and 6).
If all of the following conditions are true: the state of the pickup branch of the rental agreement is New Hampshire the age of the current customer is at most 20 Then set the rental agreement accepted status to False display the message: The customer's age is below the minimum for rentals in New Hampshire. If all of the following conditions are true: the state of the pickup branch of the rental agreement is New Hampshire the age of the current customer is between 21 and 75 Then set the rental agreement accepted status to True display the message: The customer is eligible to rent in New Hampshire. If all of the following conditions are true: the state of the pickup branch of the rental agreement is New Hampshire the age of the current customer is at least 76 Then set the rental agreement accepted status to False display the message: The customer's age is past the maximum for rentals in New Hampshire.
In this step, you add an otherwise row and delete the rules for Rhode Island from the business policy.
| Note |
| Changes to the conditions and actions that govern the columns can only be edited in ILOG Rule Solutions for Office or ILOG Rule Studio for .NET. |
The Decision Table Editor provides several features that enable you to change the way the information is displayed in your decision table, including:
In this step, you sort the table by state and contract the first set of rows, then go on to display the business rule for a given row and the condition or action statements for a given column.
The rows shared by that state are contracted and hidden in the table.
To expand the rows again, click the plus (+) button.
| Note |
| Normally, you would select Check In to save your modifications. However, for the purposes of this tutorial, you can discard changes to prevent overwriting the original document. |
| Copyright © 1987-2008 ILOG S.A. All rights reserved. Legal terms. Documentation homepage. | PREVIOUS NEXT |