How to use a Business Rule Query in a System Property

matthew_hughes
Kilo Sage

I'm working on a Business Rule that uses the below query in the if statement:

matthew_hughes_0-1778512588731.png

((current.u_external_auditor_sox_control == true || current.u_sox_control == true) || (current.u_cbp_tier == 'Tier A' || current.u_cbp_tier == 'Tier B') || current.u_supports_crown_jewels == 'Yes' || (current.u_bia_confidentiality == 'severe_1' && current.u_bia_integrity == 'severe_1'))
 
So I'm wanting to put this massive query into a system property called 'lbg.ama.privileged.access.rating.query'
 
I was just wondering if anyone knows how I would need to do this so that it makes my business rule look tidier.

 

1 REPLY 1

Tanushree Maiti
Mega Patron

Hi @matthew_hughes ,

 

You can use the system property to store static content ( in your case -its a collection of conditions).

For your use case, store the encoded query in a system property and whenever modification is needed, update it.

 

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: