How to stop a business rule from another BR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-13-2017 05:41 AM
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:
Second BR screenshot:
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
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.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-13-2017 05:47 AM
Hi ,
I would like to suggest you two things.
- Use some appropriate filter conditions to prevent one of the BR.
- change the order of BR and employ the filter conditions then
As per the setWorkflow thing, it stops all from functioning.
Regards,
Shariq
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-13-2017 11:11 PM
Hi Sharique,
Thank you for the quick response. I will try out your solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2017 04:39 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-27-2023 04:38 AM
Hi Jenny
How can you able to do it ? Can you share it ?