About this task
The debugger stopped the execution in the ruleflow at the breakpoint in the computation task.
- In Rule
Designer, click . The debugger stops the execution at the breakpoint in the
initialCorporateScore rule.
- Click the Agenda tab.
The agenda has the following rules: initialCorporateScore,
neverBankruptcy, salary2Score_6, repayment,
rate_6. This order is not correct because the repayment calculation uses the rate
values.
- Click .
The debugger stops the execution at the breakpoint in the repayment
rule.
- Click .
- In the Variables view, click the rate variable.
The loan repayment is calculated at the following line in the
repayment
rule:
set the monthly repayment of 'the loan' to the computed monthly repayment
for a loan of amount during duration with a yearly rate of rate ;
The value is calculated on the rate variable value, which is set to
0.0. The rate value is not computed yet because of the order of the rules in the
agenda.
The rate rule is after the repayment rule in the agenda because
it has the same priority, and there is no way to ensure the order in which these two rules are run.
- Click .
- In the REST Service page, you can see the following in the server response.
..
"insuranceRate": 0,
"approved": false,
"messages": [
"We are sorry. Your loan has not been approved"
],
"insurance": "none",
..
What to do next
In the next task, you find and fix an error, and then deploy the corrected
ruleset.