Modify the Algorithm to Include the New Milestone and Threshold Columns
Here's how you can modify the algorithm to include the new milestone and threshold columns you created:
-
On the Subscription Configuration page, click Dynamic Matrix Configuration > Manage Algorithms.
The Manage Algorithms page is displayed.
Note: If you're using Service Contracts, then you navigate to this page by clicking Navigator > Contract Management > Contracts > Tasks > Manage Algorithms. -
Select the Get Subscription Entitlements (or Contracts Get Service Entitlements) row, with the algorithm version 1 and status Published.
-
Select In Progress.
. A new version of the algorithm is created, with the status -
Select the new version of the algorithm. The Edit Algorithm page is displayed.
-
On the Algorithm tab, select Look up matching Entitlement Rule.
-
In the First Row Actions section, click in the Actions field.
-
Copy the existing algorithm and append it. For example:
if(Matrix.hasProperty("NextResponseMetricCode")){ rule= EntitlementResults.insert([EntitlementResultId: getNextId()]) rule.EntitlementId=Entitlement.EntitlementId rule.ScheduleId=Matrix.CalendarCode rule.ResultName= 'NextResponseMetricCode' rule.ResultValue= Matrix.NextResponseMetricCode rule.ResultThresholdValue=Matrix.NextResponseWarningMetricCode }
Note: If you're using Service Contracts, userule.CalendarId=Matrix.CalendarCode
instead ofrule.ScheduleId=Matrix.CalendarCode
. -
Replace the Source Code Name values with the values of the administrator-defined metric and its corresponding warning threshold you saved in the previous procedure for adding the result columns to the matrix class.
In this example,
NextResponseMetricCode
andNextResponseWarningMetricCode
are the names defined in the matrix classes. -
Click Save and Close.
-
Navigate to the Manage Algorithms page.
-
Select the modified version of the algorithm, and click Status of the algorithm is updated to Published.
. The