
- 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:30 PM
The thing is ... it will update the record but not the work notes . The work notes are of general input type fields and the value in these fields get copied to another table (history). At backend , there is a business rule that copy the value from these fields to activity history of that record and if we are setting workflow false , that business rule will also get skipped.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2016 10:32 PM
Thank you for the reply everyone, thanks for the advice.
Will tell you later about my current issue.
Thanks,
Tadz