Design
We are going to divide our rules in 5 steps and do a rule-flow which mean a process :
- init step : we shall determine the age of each person and the person has his birthday based on the quoting date.
- standard price : as we have the table with all prices, we shall make a decision table of it.
- Promotion : if there are more that 4 persons and the youngest is between 3 and 18 years old
- Reduction : birthday and If people are living in Zurich
- Calculate the total
The data model we are going to use is as follows :