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
- In the Rule perspective, open
carrental-xom/src/carrental/ModelFeeder.java.
- 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);
- Save your work.
- From the Rule Explorer, open the eligibility.UnderAge rule,
and set a breakpoint at the first action.
- Start the debugging session with the Debug-start-Alice launch
configuration.
- Resume execution until you reach the UnderAge rule
for Alice Boorman.
To see the birthYear in
Agenda, expand customer under carrental.RentalAgreement.
- Step into the reject method by clicking
Step Into. Open the BOM Editor to the BOM-to-XOM mapping
section for the reject method.
- Click
Terminate.
- 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.