
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-13-2016 10:10 PM
Hi, how do we disable other business rule that might run.
My initial approach is to use setWorkflow(false); But I don't know if its right
Does set workflow runs only in workflows?
Thanks,
Tadz
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-13-2016 10:22 PM
I did try to use setWorkflow(false) yesterday. It does stop the BR execution on target record but it didnt execute the update() in the current BR as well. Below is the gist of what I was trying to achieve.
How to kill a BR running in loop?
I am still looking for the exact behaviour of setWorkflow(false)... I have also referred wiki for the same.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-13-2016 10:22 PM
No its not. Its a function of GlideRecord class and it will skip execution of business rules while you perform any operation(insert/update) with that glideRecord object.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-13-2016 10:22 PM
I did try to use setWorkflow(false) yesterday. It does stop the BR execution on target record but it didnt execute the update() in the current BR as well. Below is the gist of what I was trying to achieve.
How to kill a BR running in loop?
I am still looking for the exact behaviour of setWorkflow(false)... I have also referred wiki for the same.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2016 08:10 AM
Hi Sumeet, I followed your implementation.
if(!current.work_notes.getJournalEntry(-1).split("\n\n")[0].indexOf('Work notes on '))
Let me know if you have better implementation on this.
Thanks and Best Regards!
Tadz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-13-2016 10:23 PM