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.1K All Categories
- 61 General
- 11 Training
- 201 Installation / Setup
- 1.1K Flows
- 106 Rules
- 260 Administration
- 212 Portal
- 489 General Q & A
- 693 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 51 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 178 Pages
- 5 Process Mining
- New Features
- 178 Datastructures
- 69 Repository
- 219 Integrations
- 28 Multi-Tenant
- 27 SDK
- 76 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 66 Lunch And Learn Questions