How does order actually works in a business rule

Vijay27
Tera Guru

I have 2 business rule

businesss rule with order 100:in This one i made state to Resolved whenever child case complete

Buisness rule with 0rder 150:In this i made state to work in progress whenever child case complete

Which one will excute first and second ,what should be the final value on the fileld(stateis work in progress or Resolved),

Which one is Finally impacting and made changes

 

 

4 REPLIES 4

Dubz
Mega Sage

Have you tested with your stated conditions on your PDI? Logic dictates that the first to run would be the one with order 100 so the change in there would be overwritten by the higher order one so you'd end up with state in progress. The best way to confirm is to test though.

Geetanjali Khy2
Mega Guru

Hi Vijay,

If there are multiple business rules on a particular activity, the rules run in the order specified here, from lowest to highest.

First it will execute BR with order 100(State is Resolved), then second BR with order 150(State is In Progress).

So, the final value on the field it will be 'In Progress'.

 

Please check if it is helpful.

manish64
Giga Guru

lowest order will execute first and higher order will execute last.So, the final value on the field it will be 'In Progress'.

Please mark reply as Helpful/Correct, if Helpful. Thanks!

Alok Das
Tera Guru

Hi Vijay,

"Order: Order of execution for Business Rules for the same table. Execute in ascending order. By convention, but not required, use Order values in round values of one hundred: 100, 200, 300, etc."

Refer the Servicenow Docs link mentioned below for more details:

https://developer.servicenow.com/app.do#!/lp/new_to_servicenow/app_store_learnv2_scripting_madrid_bu...

Business Rule with Order 100 will run first and set the state value as Resolved, then the Business Rule with higher order (i.e. 150 in your case) which will override all the values set in the Business rules with lower order.

Hence, the state will end up with the value as In Progress.

 

Mark my answer as correct/helpful if I was able to help you.

Regards,

Alok