< Previous

Task 6: Fixing errors and saving the decision table editor

You save your changes, and then 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 the table might produce incorrect results.

In this task, you save your changes and close the table. Then, you reopen the table in the decision table editor 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 Optimize Row Order "" after each correction to recompute the partitions, and update the gap and overlap warning markers.

Step 1: Saving your changes to the table

Procedure

To save your changes:

  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 opens in preview.

Step 2: Fixing a continuity error

Procedure

To correct the continuity error:

  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

Procedure

To fix the overlap and gap errors:

  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. Delete 600,000, and change 300,000 to 600,000.
  5. Right-click the cell, click Change operator, and select .
  6. Press Enter, and 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 Activity 1 of the Spring Release in the loanvalidation-rules-service decision 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