Chapter 14. Going Further with Rules in Data!

Going Further with Rules in Data!

Derivation of computed values

Decision tables are a common way for business rules to be expressed in data. The results are a discrete set of specific values. In the first Parcel Weight and Surcharge decision table presented in the previous chapter, there were exactly 4 surcharge values possible (if a surcharge of zero is included), and in the Parcel Weight, Danger and Surcharge table there were exactly eight values. But what happens if the rule for surcharge determination is that Surcharge equals Delivery Kilometers times Recovery Rate, where Recovery Rate changes each month and is based on average fuel ...

Get The Nimble Elephant: Agile Delivery of Data Models using a Pattern-based Approach now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.