How to stop a business rule from another BR

jenny32
Tera Guru

Hi Everyone,

I have 2 BR's, first one to prevent a incident to resolve if it has any open incident tasks and another one is OOB. Both the BR's are before BR.

First BR screenshot:

Prevent resolve.png

Second BR screenshot:

Caller close.png

When the logged in user and "caller" in the incident form are same and change the state to resolve i get two messages on the incident form

Messages.PNG

I want to print only the first message when there are any open incident task for that incident.

I tried with current.setWorkflow(false) and current.setAbortAction(true) in the first BR but then also the second message popped up.

How can i stop the second message being displayed on the form when i resolve a incident.

4 REPLIES 4

Sharique Azim
Mega Sage

Hi ,


I would like to suggest you two things.


  1. Use some appropriate filter conditions to prevent one of the BR.
  2. change the order of BR and employ the filter conditions then


As per the setWorkflow thing, it stops all from functioning.



Regards,


Shariq


Hi Sharique,



Thank you for the quick response. I will try out your solution.


Hi Sharique,



I added the filter condition and its working now . Thank you


I don't see the option to mark it as correct answer. Is there any way i can mark it has correct answer.


Hi Jenny 

How can you able to do it ? Can you share it ?