< Previous | Next >

Task 3: Generating lines of data in the table

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

  1. In the MinimumAge decision table, click the cell that contains the entry New York.

    In the corner of the cell you can see a small black square.

  2. Move the cursor to the black square so that the cursor changes to a hand symbol.
  3. Hold down the Ctrl key, and then click and drag the State cell down one row.

    The row below is automatically populated with another state from the domain, the minimum and maximum age intervals, and the Boolean values in the Rental Rejected column.

  4. Drag the Rhode Island cell to generate two more rows so that the State column displays the following states:
    • New York
    • Rhode Island
    • Massachusetts
    • New Hampshire
  5. 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

    When you finish, your table looks like the following decision table:

    MinimumAge decision table that shows the values to change
  6. 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.
  7. 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.

< Previous | Next >