How are the assessment calculations made in ServiceNow?

deepthireddy
Kilo Expert

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

8 REPLIES 8

sachin_namjoshi
Kilo Patron
Kilo Patron

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


Thanks for your reply Sachin.



Could you please let me know what triggers the calculation of normalized_value according to below screenshot? I know the formula for this calculation but could you direct me as per where to find the script for this calculation?



find_real_file.png



Thanks,


Deepthi


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


Thanks Sachin, this info. helps.