Task 4: Debugging a decision table
You add breakpoints to an action rule and a decision table, and then run a debugging
session to find and fix an error.
About this task
Step 1: Setting breakpoints in an action rule
You run a query to find the rule that contains the message Your loan has not been approved. Then, you add breakpoints to the rule.
Procedure
Step 2: Setting breakpoints in a decision table
The approval action rule applies a decision that is based on the grade that is given to the loan. You decide to locate the rule that assigns grades to the loans. You create a query that finds a decision table, and then you add breakpoints to the decision table to observe it in a debugging session.
Procedure
- Right-click the queries folder, and click .
-
Name the query gradeSet, and define the query by entering the following
search parameters:
The query looks for a rule that can assign a grade that is not A, B or C, and therefore, causes the decision service to reject the loan.

-
Run the query.
The Search view shows the grade decision table, and lists the rows that do not contain grade A, B or C:

- Double-click the decision table or one of the rows in the list to open the table in the decision table editor.
-
Select the
Gradecolumn by clicking the column header cell. Right-click theAcell in row 1, and click Toggle Breakpoint in the pop-up menu.EveryGradecell now has a breakpoint:
Step 3: Debugging the decision table
You use a debugging session to find an error in the decision table.



