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.2K All Categories
- 67 General
- 11 Training
- 202 Installation / Setup
- 1.1K Flows
- 106 Rules
- 262 Administration
- 212 Portal
- 490 General Q & A
- 695 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 52 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 179 Pages
- 5 Process Mining
- New Features
- 179 Datastructures
- 69 Repository
- 221 Integrations
- 28 Multi-Tenant
- 27 SDK
- 78 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 83 Lunch And Learn Questions