What is difference between Global Business Rule and Script include.

S Khan
Kilo Contributor

What is difference between Global Business Rule and Script include.

3 REPLIES 3

Aman Kumar S
Kilo Patron

Hi @Suhail Khan 

A global business rule is a specific type of business rule.

Business rules react to changes on a record on a specific table. For example, when an incident is created, trigger a specific business rule.

Global business rules use "Global" as the table. They don't obey the same set of conditions. Usually, they are used to define functions that can be called from other server side scripts, but have been deprecated with the use of script includes.

Script Includes are reusable server-side script logic that define a function or class. Script Includes execute their script logic only when explicitly called by other scripts. There are different types of Script Includes:

  • On demand/classless
  • Extend an existing class
  • Define a new class

 

The big different is that all global business rules are loaded on every transaction and script includes are only loaded when you call them. The circumstances where you would need to use a global business rule over a script include are rare to nonexistent.

 

 

Feel free to mark correct, If I answered your query.

Will be helpful for future visitors looking for similar questions 🙂

Best Regards
Aman Kumar

@Suhail Khan 

Is your query answered?

Feel free to mark correct, so it ends up in solved queue and will be helpful fo someone looking for similar queries.

Best Regards
Aman Kumar

Hi @S Khan 

Is your issue resolved?


Feel free to mark correct, if your issue has been resolved, so it ends up in solved queue.

Will be helpful for others looking for the similar query.

Best Regards
Aman Kumar