How are the assessment calculations made in ServiceNow?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-28-2017 06:13 AM
Hello all,
I was trying to figure out a source or a default script that ServiceNow uses to calculate the Normalized and scaled values on an assessment metric.
I know that the formula used to calculate a normalized value is ,
Normalized value = (Input Value - Min value defined in metric) / (Max value defined in metric - Min value defined in metric) * current metric weight / (sum of valid metric weight) * scale_factor
My question is, where is this calculation being made on the tool? Is it a business rule or a client script thats triggering the calculation? If so, where can I find one and what is it's called?
Any kind of help is appreciated.
Thanks,
Deepthi

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-28-2017 06:39 AM
Hi Deepthi,
Please find details below for score calculations in assesment metric
- - Business rule "Compute Overall Score" triggered update to score field on demand form.
This business rule is triggered on changes to risk, value and size field on demand form.
Risk is score_risk column on demand form
Value is score_value column on demand form
Size is score_size on demand form.
- Score_risk is calculated based on business rule "Populate Metric Results" when state of demand is changed to qualified
This business rule calculates average values of risk based on assessment metric result custom calculations.
- Score_value is calculated based on business rule "Populate Metric Results" when state of demand is changed to qualified
This business rule calculates average values of value based on assessment metric result custom calculations.
- Score_size is calculated based on business rule "Populate Metric Results" when state of demand is changed to qualified
This business rule calculates average values of risk based on assessment metric result custom calculations.
This Business rule "Compute Overall Score" triggers script include "EntityScorer" which calculates score.
- Script include "EntityScorer" calls function ""updateOverallScore"" which first calculates score_risk
riskScore = (10 - parseFloat(taskGr.getValue("score_risk")));
This function ""updateOverallScore" in turn calls script include "ScoreFactory" which calculates overall score based on score_risk, score_value and score_size values.
Score = score_risk+score_value+score_size/3
Regards,
sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-28-2017 06:47 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-28-2017 06:57 AM
Hi,
normalized_value is triggerdd after demand moves to qualified state.
normalized_value is calculated as per below calculations
http://wiki.servicenow.com/index.php?title=Assessment_Results#gsc.tab=0
Also, we can not customize formula for normalized_value which we don't have access to API which calculates normalized_value.
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-28-2017 08:22 AM
Thanks Sachin, this info. helps.