Create a decision matrix and configure its version with an input column for age, and an output column with corresponding discount percent based on the age range.
Required Editions
| User Permissions Needed | |
|---|---|
| To create decision matrices and activate matrix versions: | Rule Engine Designer |
Create a decision matrix named AgeBasedDiscount. This matrix uses the contact’s age count as input, and returns the matching discount percent.
- From app navigation menu of Business Rules Engine, select Lookup Tables.
- Click New.
- Select Decision Matrix | Next.
- For name, enter AgeBasedDiscount, and for Type, select Standard.
- Save your changes.
- On the Related tab on the decision matrix record page, select AgeBasedDiscount V1.
-
On the Matrix tab, click Add Column, and create columns with these
settings.
Column Header Header Type Data Type ContactAge Input Number Range Discount Output Percent - Click Done.
- To create a row, click Add Row.
-
To add row data, click a table cell, click
in the cell, and then enter
the value
Add these rows and values.
The steps column in this matrix version represents number ranges. The values in the column define these ranges: Below 18, 18–30, 31–45, 46–59, and 60 or above.Steps Discount Percent 17 0 18 5 31 10 46 15 60 25 - Save your changes.
-
Activate your decision matrix version.
Expression sets can call only active matrix versions.