How to change the Default scoring profile indicators from Application Rationalization List

Dontharaboinan
Tera Contributor

How to change the Default scoring profile indicators from Application Rationalization List in Enterprise architecture Workspace. Instead of Default, is it possible to add the custom indicators in to the list view.

2 REPLIES 2

nilesh_gupta
ServiceNow Employee
ServiceNow Employee

Please check by creating new system property with below name and its value as custom scoring profile sys_id

sn_apm_ws.app_indicator_scoring_profile
 
Thanks,
Nilesh

Dontharaboinan
Tera Contributor

We can change this by modifying below scripts through UI Builder. 
Go to UI Builder - Enterprise architecture workspace
1. Modify client script - Set Grid Data
In this client script change the Scripted REST Resource path. Replace it with new GET Method path. we can do this as listed below

2. Open App Rationalisation Grid scripted rest api and add new GET Method by copying existing GET Method named getAppGridData. change the script includes which are currently using. Create a copy of those two scripts includes

AppRationalizationMetaData
AppRationalizationDataBroker
3. Modify the copied script include AppRationalizationDataBroker
Change the query condition of function 
_getIndicatorScores
By default, we are querying 
 indGr.addQuery('apm_application_profile', gs.getProperty('sn_apm_ws.app_indicator_scoring_profile', "39dbe7dcdb7312003b9cffefbf9619dd"));
Add your new scoring profile sys id here and
4. Modify the copied script include AppRationalizationMetaData
Change the query condition of gliderecord for table 
apm_application_profile_indicator
By default, Here also we are setting default scoring profile. change the sys_id with new scoring profile sys id.