< Previous | Next >

Task 4: Correcting an overlapping data error

Learn how to create an error in the decision table by entering overlapping data, and then correct the error.

In this task, you edit the decision table to include overlapping interval data, view the Problem descriptions, and correct the error.

To enter overlapping data in the decision table:

  1. In the MinimumAge decision table, change the second minimum age for New York from 21 to 19 so that you now have the following values:
    New York, 18 <= age < 21, Rejected = True
    New York, 19 <= age < 25, Rejected = False
  2. In the Run menu, select Debug Configuration and then click Run. Click Yes in the Save Resource message box.

    In the Problems view, messages indicate an overlapping data error in lines 1 and 2 of column 2, which correspond to the rules for New York state:

    Problems tab and messages indicating an overlapping data error
  3. Restore the edited row to its original values by changing 19 back to 21:
    New York, 21 <= age < 25, Rejected = False
  4. On the Run menu, select Debug Configuration and then click Run. Click Yes in the Save Resource message box.

    The Problems view no longer contain warnings.

In the next task, you import data from an Excel spreadsheet into a decision table by copying and pasting cells.

Next Next: Task 5: Importing data from Excel into a decision table.

< Previous | Next >