< Previous | Next >

Before you start

This topic explains the tasks, objectives, and prerequisites of this tutorial.

A fictitious 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

Along with learning the concepts of execution order and the effects of rule execution, you learn the following tasks:

  • Start a debugging session.
  • Set breakpoints.
  • 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 >