Task 3: Fixing errors in the decision table

In this task, you correct the errors that are highlighted in the decision table.

About this task

Continuity, overlap, and gap errors can occur in decision tables. These errors can include typographical errors, incorrect operators, and number ranges that share or skip numbers. Continuity errors can prevent a table from working, while overlap and gap errors allow a table to run, but at the risk of producing incorrect results.

In this task, you save your changes and close the table, and then reopen the table and correct the errors.

Tip:

In automatic row ordering mode, click the Optimize Row Order button "" after each correction to recompute the partitions, and update the gap and overlap warning markers.

Step 1: Saving your changes to the table

In this step, you save your changes to the table so far. You include a comment that describes the work.

Procedure

  1. Click Save.
  2. Type a description of your changes in the Create New Version window:

    Updated the insurance table. Added a new column for ages, changed the preconditions, and added the Grade D section.

  3. Click Create New Version.

    The decision table editor closes, and the table is visible in the preview window.

Step 2: Fixing a continuity error

In this step, you correct the continuity error that you made in the last task.

Procedure

  1. Reopen the table in the decision table editor.
  2. Double-click the Amount of loan cell in row 14.
  3. Change >10000A to <100000.
  4. Press Enter, and click the Optimize Row Order button "".

    The cell and its row return to line 13, and the value in the cell changes to black.

Step 3: Fixing gap and overlap errors

In this step, you fix a gap between two values, and a overlap that is caused by an operator.

Procedure

  1. Double-click the Amount of loan cell in row 14.
    A gap in values exists between the maximum amount in line 14 and the minimum amount in line 15.
  2. Change 200,000 to 300,000, and press Enter.
  3. Double-click the Amount of loan cell in row 16.
    The value overlaps the values in the other Grade D cells.
  4. Right-click the cell, and click Change operator > "". The operator includes values that are greater than or equal to 600,000.
  5. Click the Optimize Row Order button "".

    All the cell values are now black, and the table no longer shows error triangles.

  6. Save your changes.