You enter rows of data in the decision table by automatically generating lines. The
principle of dragging cells to complete other cells in the table is similar to populating cells in
an Excel spreadsheet.
About this task
You create rows of data in the decision table.
Procedure
-
In the MinimumAge decision table, double-click the empty cell under New
York in the
State column.
A list of cities opens.
-
Click Rhode Island in the list. The name of the state is displayed in the empty cell. Do the
same for the next empty cell.
-
Repeat steps 1 and 2 to add Massachusetts and New Hampshire.
The
State column now displays the following states:
- New York
- Rhode Island
- Massachusetts
- New Hampshire
-
Change the
Rental Rejected Boolean values because
they are not the same for each state:
- New York: 18–21: true; 21–25: false
- Rhode Island: 18–21: true; 21–25: true
- Massachusetts: 18–21: true; 21–25: true
- New Hampshire: 18–21: true; 21–25: false
-
Add the following messages to the relevant
Reason
column cells. You can copy and paste the messages directly into the table:
- New York [18-21]:
In New York state, customer must be 21 or
more to rent a car.
- Rhode Island [18-25]:
In Rhode Island state, customer must be
25 or more to rent a car.
- Massachusetts [18-25]:
In Massachusetts state, customer must
be 25 or more to rent a car.
- New Hampshire [18-21]:
In New Hampshire state, customer must
be 21 or more to rent a car.
-
Save your work.
What to do next
In the next task, you use the problem-checking feature in Rule Designer to find and correct an overlapping
data error in a decision table.