How to run multiple sub-microflows asynchronously and show page only after all complete?
0
Hi all, I have a button that triggers a microflow. Inside that main microflow, I’m calling four sub-microflows followed by a Show Page activity at the end. Each of these four sub-microflows is independent — they don’t depend on each other’s outputs. Currently, they execute sequentially, which increases the total time before the page is displayed. What I’d like to achieve is: All four sub-microflows should run asynchronously (in parallel). Once all four are completed, then the page should be shown. I explored using Task Queues, but since tasks are executed after the microflow’s end event, it doesn’t help in this scenario — I need those four to be completed before showing the page. Has anyone handled a similar scenario or found a good approach to run parallel flows and wait for all to finish before proceeding?Any ideas or best practices would be greatly appreciated. Thanks in advance, Deepalakshmi
asked
Deepalakshmi Ethirajan
2 answers
0
You can run your background microflow in a task queue
answered
Colin Marshall
0
I was going to post about this exact same question.
The discovery that the Task Queues commit after the primary microflow means that the polling sub microflow that I set up to track the process sits in an infinite loop due to the fact that the sub microflows are not updating the entity.
You would think that the sub microflows in the task queue would execute their commits outside of the main microflows but seems that this is not the case.