< Previous | Next >

Before you start

This tutorial shows you how to debug a business rule application in Rule Designer. It includes how to set breakpoints and inspect the agenda. You also learn how to debug a BOM-to-XOM mapping, a decision table, and a ruleflow.

A car rental company needs to implement a car rental policy that changes regularly. The company must also provide a reservation application that addresses the following specific needs:

  • Enable car rental agents to fill out rental agreement forms. At this stage, rules are used to assess customer eligibility and validate the rental agreement.
  • Enable car rental agents to quote a price for a reservation. Rules compute this pricing, and select the best promotional discount plan.
  • Define assignments of cars to customers. Rules resolve car assignments when customers come for pickup, and upgrades if there is a shortage of cars.

In this tutorial, you debug a business rule application to correct a pricing error in a car rental application.

Learning objectives

In this tutorial, you learn:

  • The concepts of execution order and the effects of rule execution.
  • How to start a debugging session.
  • How to set breakpoints.
  • How to step through rule execution, decision tables, and ruleflows.

Time required

This tutorial takes about one hour to complete.

Directory structure

All the files for this tutorial are contained in the directory InstallDir/studio/tutorials/debug.

The tutorials/debug directory has the following structure:

  • answer: Answer directory for the tutorial, which contains an example that you can run.
  • start: Start directory for the tutorial, which contains a complete business rule application with an error to discover during the debugging process.
Note:

In this tutorial, the dates that are used in rules or found in expected results might not be recent or can vary according to the current date, which does not affect the correct behavior of the tutorial.

What you need to know

This tutorial assumes that you are familiar with business rule programming principles, Java™, and the Eclipse environment.

< Previous | Next >