parallel launch w/ just one running instance

by P. Andreas Schmidt, IVE

Version 1 (March 7, 2023)

Download (45 downloads)

I couldn't find an example/tutorial or other flow using/showcasing this.
I have flows with qst to facilitate system settings that can have multiple forks. Also wanted to be able to use them through widgets with fixed settings (timings etc). One possible solution is this.
Using the parallel launch option in the beginning flows and the payload.
Using the fibre Uri then you check for other running instances, that first need to be shut down. So it for each-es through the fibers and stops them, except for its own, obviously. Considering that the new instance should be the latest in the list, you could just for each through a slice (see the not connected block), but if you have a flow with many forks or so, it could be different and you should just to make sure check each time. In that case, if any of those forks are not stopped together with parent, it could even happen, I guess, that there would be new fibers that went there before and would have to still be stopped and you'd need to loop back to the query to make sure...
Another option could be using payloads, but from another flow stopping the flow completely, and then start again with payload, and at the beginning just check for that...
All the log appends are just for tutorial purposes.

Hope this helps, leave comments if you have questions or find a bug, or another/better solution!

5.0 average rating from 2 reviews

5 stars
2
4 stars
0
3 stars
0
2 stars
0
1 star
0
Reports
0

Rate and review within the app in the Community section.