ILOG JRules User Guide > Running and Debugging > Getting Started > Tutorial: Debugging a Ruleset > Task 5: Stepping through the BOM to XOM Mapping

In this task, you see how to step through the BOM to XOM mapping by inspecting that section of the BOM Editor during a debugging session.

To step through the BOM to XOM mapping:

  1. In the Rule perspective, open the ilrmain page.
  2. XOM, BOM, and Vocabulary
  3. In the ilrmain function, change the year of birth for Alice Boorman to 1991 (so that her age becomes 16).
  4. Save your work.
  5. From the Rule Explorer, open the eligibility.UnderAge rule, and set a breakpoint at the first action.
  6. Start the debugging session (click images/tut_icon_debug.png on the toolbar or select Run > Debug).
  7. Resume execution (click images/tut_icon_resume.png Resume or press F8) until you reach the UnderAge rule for Alice Boorman.
  8. The Agenda shows:
    XOM, BOM, and Vocabulary
  9. Step into the reject method, by clicking images/tut_icon_stepInto.png Step Into on the toolbar or in the Run menu.
  10. The BOM Editor opens to the BOM to XOM Mapping section for the reject method.
    XOM, BOM, and Vocabulary
  11. Click images/tut_icon_stepInto.png Step Into again.
  12. The debugger now enters the Java code called by the rule:
    XOM, BOM, and Vocabulary
    The stack trace in the Debug view reflects the Java to rule to Java interleave.
RentalAgreement.setRejected(boolean) line: 151
Rule engine executing (BOM to XOM  : translation.carrental.RentalAgreement.reject(carrental.RentalAgreement) at index 1)
IlrMain.main(String[]) line: 167
  1. Resume execution until the application terminates, or click images/tut_icon_terminate.png Terminate.
  2. In the Breakpoints view, remove the breakpoint set in the UnderAge rule.

images/arrow_next.gif Next: Task 6: Debugging a Decision Table