ILOG JRules User Guide > Running and Debugging > Getting Started > Tutorial: Debugging a Ruleset > Task 3: Inspecting the Agenda

In this task, you use the Agenda view to watch the execution output and see what is happening to the objects.

To inspect the agenda:

  1. From the Run menu, click Open Debug Dialog.
  2. In the Debug dialog, select debug-start-configuration, and click Debug.
  3. If the Confirm Perspective Switch dialog appears, click Yes.
    The Debug perspective opens.
  4. Click images/tut_icon_resume.png Resume (or press F8) to resume debugging to the first breakpoint.
  5. Execution stops at the breakpoint in the qualifyFor.LongTermDiscount rule. The output appears in the Console:
########### RESERVATIONS ################
Eligibility task : Initial action for Rental Agreement for Julian Bayles (May 20, 1970)
Eligibility task : Final action for Rental Agreement for Julian Bayles (May 20, 1970)
-------------------------------------------------------------
Pricing task : Initial action for Rental Agreement for Julian Bayles (May 20, 1970)
 set price of standard offer for the Rental Agreement for Julian Bayles (May 20, 1970)
Add surcharge of 2 for PEI
Add surcharge of 3 for PAI
Add surcharge of 21 for LDW [Economy, Compact, MidSize]
Add surcharge of 15 for CDW [Economy, Compact, MidSize]
  1. Open the Agenda view.
  2. XOM, BOM, and Vocabulary
    The Agenda view lists the rules that were triggered, the pricing.qualifyFor.LongTermDiscount and pricing.qualifyFor.SuperBowl rules. However, the pricing.price.LongTermDiscount rule is not listed, although it should fire every time the pricing.qualifyFor.LongTermDiscount rule is true.
  3. Under pricing.qualifyFor.LongTermDiscount > matchedObjects for the carrental.RentalAgreement, inspect the value of offers by clicking offers=AbstractCollection and note the current value in the detail pane:
[standard price: 579.90]
XOM, BOM, and Vocabulary
  1. Click images/tut_icon_resume.png Resume (or press F8) to resume debugging.
  2. Execution stops in the pricing.qualifyFor.SuperBowl rule. Normally, the pricing.price.LongTermDiscount rule should have fired before the pricing.qualifyFor.SuperBowl rule.
  3. In the Agenda view, again inspect the value of offers=AbstractCollection.
  4. The detail pane now displays the incorrect price for the long term offer:
[standard price: 579.90, long term price: 0.00]

Next you correct the problem so the pricing.price.LongTermDiscount rule fires properly.

images/arrow_next.gif Next: Task 4: Correcting the Problem