Stop execution of another business rules

Santhosh23
Tera Expert

Is there is anyways to stop execution of businesses rules if the update Is happen from another  business rules. Tried setworkflow(false) in before business rules. But it's triggering after update business rules matching the update conditions. 

 

1 ACCEPTED SOLUTION

Do you want to connect over a call and close this I believe would be easy to explain it to you.

I am reachable at below linked in:

https://www.linkedin.com/in/shloke-srivastava-13a1b887/

Send me a request and we can connect now.

Regards,

Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

View solution in original post

6 REPLIES 6

shloke04
Kilo Patron

Hi,

You need to make below changes and it should work for you:

1) In the BR which you want to execute, include "setWorkflow(false)' in it and make sure to lower the order of that BR to say 50.

2) Now the other business Rule which is still getting trigger and you do not want it to get trigger make sure you increase the Order of that BR to say 1000.

For reference, I am talking about the field in Red below which you need to update:

find_real_file.png

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Thanks for the response I already tried but no luck. Is there is any other way..

The other BR which you want not to execute, can you include the below line in that BR so that even if it executes it will not to do any Database update which should do the work for you.

current.setAbortAction(true);

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Did this worked for you? IF you are stuck let me know.

Regards,

Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke