What is the use ORDER in business rule?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2014 08:41 AM
I know BR will work low order to high order.
Example 10,11,12 and so on.
I understand something about the use ORDER in BR. But not fully.
My question is
I have 100 BR in order of 100 and I have 10 BR in order of 1000. What BR will execute first?
I know the BR with order 100 will start first. But when the order 1000 will start?
All the 100 BR with order 100 finished first and then only 10 BR with order 1000 will execute?
Thanks in Advance
Dinesh Chinnadurai.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2019 07:05 AM
As defined into Product Documentation "https://docs.servicenow.com/bundle/london-application-development/page/script/general-scripting/reference/r_ExecutionOrderScriptsAndEngines.html" the execution order is the following:
The order of execution is as follows:
- Before business rules: Scripts configured to execute before the database operation with an order less than 1000.
- Before engines. The following are not executed in any specific order:
- Before business rules: Scripts configured to execute before the database operation with an order greater than or equal to 1000.
- The data base operation (insert, update, delete).
- After business rules: Scripts configured to execute after the database operation with an order less than 1000.
- After engines. The following are not executed in any specific order:
- Email notifications. The following are executed based on the weight of the notification record:
- After business rules. Scripts configured to execute after the database operation with an order greater than or equal to 1000.
Mark Correct if it solved your issue or hit Like and Helpful if you find my response qorthy