Start unknown number of flows and wait for all to

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.

Sign In or Register to comment.