- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2017 08:00 AM
I want to know if there is any difference in behavior between these 2 objects , or any criteria so that we choose one over the other :
new Workflow().broadcastEventToCurrentsContexts(gr, 'update', null); VS new Workflow().runFlows(gr, "update");
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2017 12:20 PM
I believe these functions are doing the exact same thing. Both will essentially broadcast the "update" event to the workflow which will in turn trigger the workflow to start running again. This is typically done when you have a Wait For Condition that is checking another table or some non-standard field.
With that said, I'd recommend using broadcastEventToCurrentsContexts as this is what the OOB business rules are using in more recent versions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2017 12:20 PM
I believe these functions are doing the exact same thing. Both will essentially broadcast the "update" event to the workflow which will in turn trigger the workflow to start running again. This is typically done when you have a Wait For Condition that is checking another table or some non-standard field.
With that said, I'd recommend using broadcastEventToCurrentsContexts as this is what the OOB business rules are using in more recent versions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2023 12:39 PM
@awessel- Is there an equivalent for triggering a Flow to start running again?