Task 4: Correcting the problem
You modify a BOM to correct a problem in the application.
About this task
When the application determines that a customer qualifies for a special offer, for instance through the pricing.qualifyFor.LongTermDiscount rule, it is supposed to update the RentalAgreement object to include the offer. Then, the rule engine evaluates the updated RentalAgreement object. Based on this evaluation, the rule engine runs the rule that calculates the price for this special offer, for instance the pricing.price.LongTermDiscount rule. The problem is that the rules do not update the RentalAgreement object, and the rule engine cannot see the offer to evaluate it. As a result the application does not run the rules that compute the price.
In this task, you modify the business object model (BOM) so that the addOffer method updates the RentalAgreement object. Then, you remove the breakpoints that you inserted.
Step 1: Modifying the BOM
About this task
You modify the BOM so that the addOffer method updates the RentalAgreement object.
Procedure
Step 2: Removing the breakpoints
About this task
Now that the application is updating the RentalAgreement object correctly, you can remove the breakpoints in the rules so that they run normally.
Procedure
- In the Debug perspective, open the Breakpoints view.
- Click the Remove All Breakpoints button
.