< Previous | Next >

Task 5: Stepping through the BOM-to-XOM mapping

You step through the BOM-to-XOM mapping by using the BOM Editor during a debugging session.

About this task

You step through the BOM-to-XOM mapping.

Procedure

  1. In the Rule perspective, open carrental-xom/src/carrental/ModelFeeder.java.
  2. In the initModel function, change the year of birth for Alice Boorman so that she is 16 years old. Change 23 to 16 in the following line:
    aliceBirthDate.add(Calendar.YEAR, -23);
  3. Save your work.
  4. From the Rule Explorer, open the eligibility.UnderAge rule, and set a breakpoint at the first action.
  5. Start the debugging session with the Debug-start-Alice launch configuration.
  6. Resume execution until you reach the UnderAge rule for Alice Boorman.

    To see the birthYear in Agenda, expand customer under carrental.RentalAgreement.

  7. Step into the reject method by clicking Step IntoStep Into.

    Open the BOM Editor to the BOM-to-XOM mapping section for the reject method.

    BOM-to-XOM mapping section of reject method
  8. Click Terminate icon Terminate.
  9. In the Breakpoints view, remove the breakpoints from the UnderAge rule.

What to do next

In the next task, you add breakpoints to a decision table.
< Previous | Next >