Skip to content

Commit 86a3ea6

Browse files
MYaswanth28admin
andauthored
Instance scans/Inactive Business Rules (#167)
* Update README.md * Business Rules --------- Co-authored-by: admin <[email protected]>
1 parent c37a6a8 commit 86a3ea6

File tree

3 files changed

+59
-1
lines changed

3 files changed

+59
-1
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ Script Includes names should not include spaces since it is not possible to call
124124
### Roles assigned to non-existing users
125125
Identify role assignments (sys_user_has_role) for users that do not exists
126126

127+
### Assign roles to Group
128+
Assign Roles to sys_user_group , Rather than assigning roles to sys_user , It becomes difficult while adding lot of roles
129+
127130
### Check the incidents that are closed or canceled but still active
128131
This is a table check on the incidents table that verifies if there are closed or canceled incidents in the active state, which would be a sign that the close_states are not set correctly on the incident table. This check can be done on any table, especially there where the State model was changed from OOTB or for custom extended tables. The problem with this kind of records is that they can influence the reports on active records on the respective table.
129132

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
4d6lPrUkCVTDgWYn5zU7vu4stzuS-TziCS-zwvUKtV6pl_XMX5Tj-ebHSo_WkFHOKdmi0Ujiy319GF9bCMGVC16bo9b_IO79Y7WPQlkZLCbMBK-_DQKiWEybC9f1ZalcFWo7V4GrtTCBA8jzgVuih9sHYUU8pBeYGaWqFnKL2bd8IAq9VhtmJM_TuEc1kBvs7Nxkz9ixLDGIH4y4hVzMNOJX9_YneP-MN3X1LH88mDVggqTGcAspNfEjeFwlnSdVyaLuzARhoyNhQmW-02eoXtCCio1Yhf5vjbuvWQrxxeRp-jl52NUBETQaNpvlHpVGHl8yAn5H-JI4yHLuJRrw0okqbBWyMgfP3M6LrWJEwR4YjL0aAVVdk9KL3bq9ylh1sEncKCGHZrzpBqXgF_6qJ_C4L6kZl3k-QxXTBEPuWScooyFBJpntmKF19xhnJtQn4LIfF9vWhm9K5PVSzGF2ZGophrvIZvrktw_u4Lnn1Ousm0kEtkYSELmujsA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Nxkz9ixLDGIH4y4hVzMNOJX9_YneP-MN3X1LH88mDVggqTGcAspNfEjeFwlnSdVyaLuzARhoyNhQmW-02eoXtCCio1Yhf5vjbuvWQrxxeRp-jl52NUBETQaNpvlHpVGHl8yAn5H-JI4yHLuJRrw0okqbBWyMgfP3M6LrWJEwR4YjL0aAVVdk9KL3bq9ylh1sEncKCGHZrzpBqXgF_6qJ_C4L6kZl3k-QxXTBEPuWScooyFBJpntmKF19xhnJtQn4LIfF9vWhm9K5PVSzGF2ZGophrvIZvrktw_u4Lnn1Ousm0kEtkYSELmujsAUbXLDOt0_A2KfGpCQmw-1Av5eHfEhzIHwIEk9wjE6BdaExpaZqL_8QIGMHuU4N09_l9uJ_whnwDLeaPRCJjzkwaxLTuetU9mwMVvW8PTJsZQgvnJ6DNr2LAog737M0_LjoIeO10FEwgwNRSCA_nar42g3jwPPWgcpVaMt-ImskANvhys
4+
master
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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>true</advanced>
5+
<category>performance</category>
6+
<conditions/>
7+
<description>Business Rules Inactive Status , Shouldnt be Visible</description>
8+
<documentation_url/>
9+
<finding_type>scan_finding</finding_type>
10+
<name>Business_Rule_Active_Status</name>
11+
<priority>3</priority>
12+
<resolution_details/>
13+
<run_condition/>
14+
<score_max>100</score_max>
15+
<score_min>0</score_min>
16+
<score_scale>1</score_scale>
17+
<script><![CDATA[(function (engine) {
18+
19+
if (!current.active) {
20+
gs.addErrorMessage('Inactive Business Rule: ' + current.name);
21+
}
22+
23+
})(engine);]]></script>
24+
<short_description>Check the Active Status of Business Rules</short_description>
25+
<sys_class_name>scan_table_check</sys_class_name>
26+
<sys_created_by>admin</sys_created_by>
27+
<sys_created_on>2024-10-28 09:25:41</sys_created_on>
28+
<sys_id>01342bc1c3ed12103acc7275e40131eb</sys_id>
29+
<sys_mod_count>0</sys_mod_count>
30+
<sys_name>Business_Rule_Active_Status</sys_name>
31+
<sys_package display_value="Example Instance Checks" source="x_appe_exa_checks">ca8467c41b9abc10ce0f62c3b24bcbaa</sys_package>
32+
<sys_policy/>
33+
<sys_scope display_value="Example Instance Checks">ca8467c41b9abc10ce0f62c3b24bcbaa</sys_scope>
34+
<sys_update_name>scan_table_check_01342bc1c3ed12103acc7275e40131eb</sys_update_name>
35+
<sys_updated_by>admin</sys_updated_by>
36+
<sys_updated_on>2024-10-28 09:25:41</sys_updated_on>
37+
<table>sys_script</table>
38+
<use_manifest>false</use_manifest>
39+
</scan_table_check>
40+
<sys_translated_text action="delete_multiple" query="documentkey=01342bc1c3ed12103acc7275e40131eb"/>
41+
<sys_es_latest_script action="INSERT_OR_UPDATE">
42+
<id>01342bc1c3ed12103acc7275e40131eb</id>
43+
<sys_created_by>admin</sys_created_by>
44+
<sys_created_on>2024-10-28 09:25:40</sys_created_on>
45+
<sys_id>39946781c3ed12103acc7275e4013112</sys_id>
46+
<sys_mod_count>0</sys_mod_count>
47+
<sys_updated_by>admin</sys_updated_by>
48+
<sys_updated_on>2024-10-28 09:25:40</sys_updated_on>
49+
<table>scan_table_check</table>
50+
<use_es_latest>true</use_es_latest>
51+
</sys_es_latest_script>
52+
</record_update>

0 commit comments

Comments
 (0)