Task 3: Debugging a rule
You set breakpoints in a rule and run a debug session. When you find an error, you make changes to correct it.
About this task
monthly repayment. You
create a query to find the rule that uses the variable in an action. Then, you place a breakpoint on
the action in the rule, and another breakpoint on the code that computes the monthly repayment rate.
You run a debugging session, which leads you to an error in the Java code, which you try to
fix.Step 1: Setting a breakpoint in a rule
You create a query to find the action rule that uses the variable monthly repayment, and then add a breakpoint to track the rule.
Procedure
Step 2: Debugging the action rule
You run a debugging session. When it stops at breakpoints, you look for reasons for the monthly repayment error.
Procedure
Step 3: Fixing the error in the rule
You change the value of the MonthsInYear variable to 12, and run the
decision service to check the results.





