Skip to content

Commit 972abcd

Browse files
aman2519adminniamccash
authored
Added scan check for Running Business rules for transform map (#82)
* Added scan check for Running Business rules for transform map * Update README.md Added for scan check Running Business Rules on Transform Maps --------- Co-authored-by: admin <admin@example.com> Co-authored-by: niamccash <39105458+niamccash@users.noreply.github.com>
1 parent 599fa2b commit 972abcd

File tree

3 files changed

+46
-1
lines changed

3 files changed

+46
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,13 @@ api.controller = function ($rootScope, $scope) {
182182
### Provide alternate value when fetching Glide property
183183
Recommendation to provide alternate/default value when calling gs.getProperty() to avoid errors if the property is not set.
184184

185+
### Running Business Rules on Transform Maps
186+
Running business rules during transform may cause the transform to take longer than expected, or cause the instance to slow down.Do not run items like business rules, workflows, approval engines, and so on during a transform unless you want all insert and update business rules, notifications, and workflows to run
187+
185188
### Avoid using getReference()
186189
getReference is no longer considered best practice due to its performance impact and it is recommended to use g_scratchpad or GlideAjax instead.
187190

191+
188192
## Category: Security
189193
##Check Mandatory fields on incident
190194
This check is used to find mandatory fields on incident
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0B6CCLMe9KvvOzjJGIIuGgS6LL6SD9sDoq-FcaNtAyvj7MRocHVPInSPnXCSVL5rgBO70ISjsz2TyI3AxUavcTg2XBAb-iF0WetJxhEZP5itR8UtyDZ1M8dvqSwwQyxmr2rhGAoLnyvAfqT7Pu3tMGXD2ysRGjU_s-BhEKIqTYGHNfL6RgTVRwZPDPwtRnwYnXC2xdYEVG84Oa5c59XNMXr1R_OEnLd8UXYJ82DVtzjkdk0D5nNQQuW3n4F0P4drKyYPh-fPMVkzxoeySQZBIEIaxYUZLAFkNBJeiMU-p3uqPFz94nOGeFfGGdh9N1wuZ_iJ8Qcx99UWSXOkUcUQlui40Bcc9c7IZ7vt2VPoeCZGp74_JH3cWcE11cmx1B-uLoxxjyya_BjZy-LhYBsYT_EQxBgEP2D5BDqjzdTUKjYQT8G_eApIx-vEQabuZSd2zt-0mgi0q_FB56nKYvtdoObnROfqVgyZnXeYlo5sZrJtTT5UPnhEbGlv24mw7mF6UJ7HxA3GajdpFW2kQ02kQIdYI_KGSI9u-Ah3JTN9AkWevlmrV3xg0URGZHLSObGeJ6BpRoWNABRMOz4IgmH8197CsXBgjRPAm-uWmKEAGVvOYF6g8VKgdffdyOXEsl4biu8ZwZL7qW6vOMkEgfKvmVe-MhYKb2tPt1cJ1tqaiK0
1+
APBZ6N-mXQqTnbxQsCc2BHSyXp9Boqw2IPsl8t_tiGfkZCie3Y_HBRDI1ohtO9n5IZjYoWFKvqlA7F7fyv96kTOlFKK6GyU-tdiUoEqcOGb6K1x9t2oX4vonME33VyIwpeelR7UEPVuU9fQofwdQKQ0g-16C3mEXbfGXvhmgI7kxGU4eJl06omxI8VrED2HXXpiEPV76_WMvd14z3Iddfk2uo2ygohHSAtREtUmG4IZJVbcu4Hc4nWbhOEPeA1jYNPFFcvTK3iwpX8FUgYNRTYQfrCg1BSy8AoozxzFjn8_WX0mi10IhJzRZwrJCXfWhhVQoGdiCvYCqcogxDtNaDUzxkw20MbNXo6-AZpcJMH1EovFOJOS0CzqJ-KdnOKhSooYh7emFWG8xFZrzZi149t4Dq3aWft40Z4g7AjpgXt_7EO_NvCXBaHnXMwSOaiA-PoW2JL_FKI3AIduUybr3xPwQYP4Zbz2UzQtVVMOMeMFTs7JAqoHNkOG-jQNRAa_Bbq4cY_Ru6leaPdKEKVa3IDl1mf9ug7dcVhfkFDszOWRdRWDmJGi-ptN5twYZ_5IFEqIl_9YmylsKX-JobM4bDl-80xGd2v7z96Yj2oZg0ArGuO7EG6BwdQkmT-fvSwrBFawNWPX-OSdoRXoCc217pNPfsXFVNqBZ-sLza74ikRM
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?xml version="1.0" encoding="UTF-8"?><record_update table="scan_table_check">
2+
<scan_table_check action="INSERT_OR_UPDATE">
3+
<active>true</active>
4+
<advanced>false</advanced>
5+
<category>performance</category>
6+
<conditions table="sys_transform_map">run_business_rules=true^active=true^EQ<item endquery="false" field="run_business_rules" goto="false" newquery="false" operator="=" or="false" value="true"/>
7+
<item endquery="false" field="active" goto="false" newquery="false" operator="=" or="false" value="true"/>
8+
<item endquery="true" field="" goto="false" newquery="false" operator="=" or="false" value=""/>
9+
</conditions>
10+
<description>Running business rules during transform may cause the transform to take longer than expected, or cause the instance to slow down.</description>
11+
<documentation_url>https://docs.servicenow.com/bundle/vancouver-integrate-applications/page/administer/technical-best-practice/concept/c_TroubleshootImportSetPerformance.html</documentation_url>
12+
<finding_type>scan_finding</finding_type>
13+
<name>Running Business Rules on Transform Maps </name>
14+
<priority>1</priority>
15+
<resolution_details> Do not run items like business rules, workflows, approval engines, and so on during a transform unless you want all insert and update business rules, notifications, and workflows to run. For example, when importing all data from an old system, you may not want notifications to run. To disable these items from running and to cease auditing and field normalization within the transform map for that import, deselect the Run business rules check box.</resolution_details>
16+
<run_condition/>
17+
<score_max>100</score_max>
18+
<score_min>0</score_min>
19+
<score_scale>1</score_scale>
20+
<script><![CDATA[(function (engine) {
21+
22+
// Add your code here
23+
24+
})(engine);]]></script>
25+
<short_description>Running Business Rules on Transform Maps </short_description>
26+
<sys_class_name>scan_table_check</sys_class_name>
27+
<sys_created_by>admin</sys_created_by>
28+
<sys_created_on>2023-10-10 11:06:48</sys_created_on>
29+
<sys_id>e19656212ff1311002eb2ca62799b639</sys_id>
30+
<sys_mod_count>1</sys_mod_count>
31+
<sys_name>Running Business Rules on Transform Maps </sys_name>
32+
<sys_package display_value="Example Instance Checks" source="x_appe_exa_checks">ca8467c41b9abc10ce0f62c3b24bcbaa</sys_package>
33+
<sys_policy/>
34+
<sys_scope display_value="Example Instance Checks">ca8467c41b9abc10ce0f62c3b24bcbaa</sys_scope>
35+
<sys_update_name>scan_table_check_e19656212ff1311002eb2ca62799b639</sys_update_name>
36+
<sys_updated_by>admin</sys_updated_by>
37+
<sys_updated_on>2023-10-10 11:08:53</sys_updated_on>
38+
<table>sys_transform_map</table>
39+
<use_manifest>false</use_manifest>
40+
</scan_table_check>
41+
</record_update>

0 commit comments

Comments
 (0)