Decision Table: Rule# (Cells) | Executed Rule | Variables and Values |
---|---|---|
DetermineVacationDays: 1 (B5:B5) |
THEN 'Execute Decision Tables' = SetEligibleForExtra5Days |
|
SetEligibleForExtra5Days: 1 (B5:D5) |
IF 'Age in Years' < 18 THEN 'Eligible for Extra 5 Days' = true |
Age in Years= Eligible for Extra 5 Days={old:, new:true} |
DetermineVacationDays: 2 (B6:B6) |
THEN 'Execute Decision Tables' = SetEligibleForExtra3Days |
|
SetEligibleForExtra3Days: 3 (B7:D7) |
THEN 'Eligible for Extra 3 Days' = false |
Eligible for Extra 3 Days={old:, new:false} |
DetermineVacationDays: 3 (B7:B7) |
THEN 'Execute Decision Tables' = SetEligibleForExtra2Days |
|
SetEligibleForExtra2Days: 3 (B7:D7) |
THEN 'Eligible for Extra 2 Days' = false |
Eligible for Extra 2 Days={old:, new:false} |
DetermineVacationDays: 4 (B8:B8) |
THEN 'Execute Decision Tables' = CalculateVacationDays |
|
CalculateVacationDays: 1 (B5:F5) |
THEN 'Vacation Days' = 22 |
Vacation Days={old:, new:22} |
CalculateVacationDays: 2 (B6:F6) |
IF 'Eligible for Extra 5 Days' Is true THEN 'Vacation Days' + 5 |
Eligible for Extra 5 Days=true Vacation Days={old:22, new:27} |