You are here:
Create Decision Matrices and an Expression Set to Calculate Complaint Resolution Priority
Create a decision matrix to map priority and completeness levels determined by the Calculate Complaint Resolution Score flow to numerical values for calculating the resolution priority of a complaint. Next, create another decision matrix to specify the weights that the expression set assigns to the priority and completeness values when determining the resolution priority of a complaint. Then, create an expression set from the Calculate Public Complaint Score expression set template.
Required Editions
| View supported product editions. |
| User Permissions Needed | |
|---|---|
To create decision matrices and expression sets: |
Rule Engine Designer permission set |
Define Numerical Values for Priority and Completeness Levels
- From the App Launcher, find and select Lookup Tables.
- Click New, and then select Decision Matrix.
- Click Next.
- For Name, enter ParameterValues.
- For Type, select Standard.
- Save the matrix.
- On the Related tab of the decision matrix record page, select version 1 of the matrix with the name ParameterValues_V1.
-
To define your input and output data, add columns to the matrix.
- Click Add Column. For Column Header, enter Parameter, for Header Type select Input, and for Data Type select Text.
- Click Add Column. For Column Header, enter SubParameter, for Header Type select Input, and for Data Type select Text.
- Click Add Column. For Column Header, enter Value, for Header Type select Output, and for Data Type select Number.
- Click Done.
-
Add rows to map the high, medium, and low priority and completeness levels to
numerical values. Here’s a sample set of input and output data.
Input Data Output Data Parameter (Text) Subparameter (Text) Value (Number) Completeness Low 5 Completeness Medium 8 Completeness High 10 Priority Low 5 Priority Medium 8 Priority High 10 - Save and activate the decision matrix.
Define Weights for Priority and Completeness
- From the App Launcher, find and select Lookup Tables.
- Click New, and then select Decision Matrix.
- Click Next.
- For Name, enter ParameterWeights.
- For Type, select Standard.
- Save the matrix.
- On the Related tab of the decision matrix record page, select version 1 of the matrix with the name ParameterWeights_V1.
-
To define your input and output data, add columns to the matrix.
- Click Add Column. For Column Header, enter Parameter, for Header Type select Input, and for Data Type select Text.
- Click Add Column. For Column Header, enter Weight, for Header Type select Output, and for Data Type select Number.
- Click Done.
-
Add rows to assign weights to the priority and completeness parameters.
Here’s a sample set of input and output data.
Input Data Output Data Parameter (Text) Weight (Number) Completeness 0.5 Priority 0.5 - Save and activate the decision matrix.
Build an Expression Set to Calculate Complaint Resolution Priority
- From the App Launcher, find and select Expression Set Templates.
- Select Calculate Public Complaint Score.
- Click Save As, and then select New Expression Set.
- In the New Expression Set window, click Save.
-
In Expression Set Properties, set a start date time, an end date time, and a rank.
When more than one enabled version matches an expression set call and the date-time periods overlap, the version with the highest rank is chosen. For example, if two enabled versions have the rank values 1 and 2, the version with rank 2 is chosen.
- Save and activate the expression set.
Did this article solve your issue?
Let us know so we can improve!
