Start unknown number of flows and wait for all to
Comments
-
Hello
We have a situation where we iterate a collection and for each start a flow and complete the flows one by one synchronously. We now need to run all these flows async but wait for all the flows started by the ForEach loop to complete before moving past the ForEach step to the next step.
What is the best way to do this?
-
Hello,
Is it necessary for them all to run in series?
If they can be run in parallel, there is a step Branch ForEach which will run the collection Asynchronously. When you need to wait for all of them to be complete, there is a Merge step which will wait until all branches reach that step to continue.
Let me know if that is what you are looking for.
-
Hi,
I tried using the Branch ForEach but it says a linked flow has to follow, when I use that it automatically exits for all iterations as we started the subflow async.
Have I missed something? -
Hi,
Starting these sub flows synchronously from the branch for-each step, I think, is what you’re looking for. This allows all the flows to be started, and then the merge step will wait for all these flows to finish.
Howdy, Stranger!
Categories
- 4.4K All Categories
- 81 General
- 13 Training
- 209 Installation / Setup
- 1.2K Flows
- 110 Rules
- 270 Administration
- 213 Portal
- 497 General Q & A
- 711 Forms
- 346 Reports
- 3 Designer Extensions
- 48 Example Flows
- 58 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 187 Pages
- 5 Process Mining
- New Features
- 186 Datastructures
- 70 Repository
- 230 Integrations
- 29 Multi-Tenant
- 27 SDK
- 81 Modules
- 59 Settings
- 26 Active Directory
- 12 Version 7
- 35 Version 8
- 143 Lunch And Learn Questions