| ILOG JRules User Guide > Running and Debugging > Getting Started > Tutorial: Debugging a Ruleset > Task 2: Setting Breakpoints in the Rules |
Task 2: Setting Breakpoints in the Rules |
PREVIOUS NEXT |
You can set breakpoints in rules to help determine the side effects of rule execution.
To perform correctly, the application should determine when customers qualify for special offers and compute the rental prices accordingly. In this tutorial, the application detects when customers qualify. However, the rules that compute the special offer prices are not triggered.
In this task, you set breakpoints in the rules that are related to the problem to see why the price rules are not triggered.
To set breakpoints:
LongTermDiscount rule in the debug-rules-start > rules > pricing > qualifyFor package.
LongTermDiscount rule using the Intellirule Editor (right-click the rule and select Open With > Intellirule Editor).
pricing.qualifyFor.SuperBowl rule and the pricing.price.LongTermDiscount rule.
In the next step, you start the debugging session again and watch the output at the breakpoints to see at exactly which point the error arises. In this case, not all the breakpoints you have just set will be reached, as you discover in the next step.
Next: Task 3: Inspecting the Agenda
| Copyright © 1987-2008 ILOG S.A. All rights reserved. Legal terms. Documentation homepage. | PREVIOUS NEXT |