< Previous

Task 3: Fixing errors and saving the decision table

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 range from typographical errors and incorrect operators to 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. You save the table again, and post a message to inform other users of your changes.

In automatic row ordering mode, you must 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

About this task

You save your changes.

Procedure

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

    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 preview mode.

Step 2: Fixing a continuity error

About this task

You correct a continuity error.

Procedure

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

    The cell value changes to black, and the red triangle and the text in the column header change to yellow.

Step 3: Fixing overlap and gap errors

About this task

You fix a gap error, and add a missing value.

Procedure

  1. Double-click the Amount of loan cell in row 14.
  2. Change 200,000 to 300,000, and press Enter.
  3. Double-click the Amount of loan cell in row 16.
  4. Enter 600,000.
  5. Right-click the cell, and click Change operator > ≥. The operator includes values that are greater than or equal to 600,000.
  6. Click the Optimize Row Order button "".

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

  7. Save your changes.

Step 4: Posting a comment

Procedure

  1. Click Stream > Post a new comment here.
  2. Type a message in the comment box. For example:

    I have updated the insurance decision table in Loan Validation Service.

  3. Click Post.

Results

In this tutorial, you learned how to update a decision table. You modified the preconditions and the rule statement to check ages, and added rules for an insurance grade. You finished the tutorial by correcting errors in the table, saving your changes, and posting a comment for other users.
< Previous