Creating decision matrices

Create a decision table to calculate the shipping fee and whether insurance is required for sending a package, based on its weight and value. This table shows the parameters that are required for the workflow:

Parameter Data Type
Weight Decimal
Value Decimal
Insurance Boolean
ShippingFee Decimal

This table shows a possible decision table for this workflow:

Parameters to check Parameters to set
Weight Value Insurance ShippingFee
<= ‘800.0’ < ‘150.0’ False 3.5
> ‘800.0’ < ‘150.0’ False 12.0
>= ‘150.0’ True 20.0

At evaluation time, these are possible results:

  • For a package with Weight 700 and Value 120, no Insurance is required and ShippingFee is 3.5.
  • For a package with Weight 500 and Value 170, Insurance is required and ShippingFee is 20.