Before you start
This tutorial illustrates the functions of WebSphere Process Server business rules. Business rules externalize simple algorithms and values that are used to affect the operation of a business process. These algorithms and values will change over time. They should not be embedded in code, which would make them difficult to change.
In this scenario, you are responsible for implementing a Frequent Flyer tracking system for a major airline. Whenever a passenger flies with this airline, they are awarded Frequent Flyer miles based on the actual miles flown. These miles are used to calculate redeemable awards. In addition, the passenger is given extra bonus miles based on their status in the Frequent Flyer program. There are three privileged statuses:
- Gold
- Silver
- Platinum
For each of these, a different bonus mileage is applied:
- Gold = 25%
- Silver = 50%
- Platinum = 100%
Our business leaders selectively add new status values as well as change the bonus award values from time to time. These are the variables in our business rules. Your task is to develop a service component that both implements and externalizes the requirement to quickly change the rules as the market changes. When completed, the service component looks like the diagram in Figure 1.
Figure 1. Logical function of rules

