question

mfrsagfm avatar image
0 Likes"
mfrsagfm asked Logan Gold commented

How do I run 2 subflows concurrently after a decide block in a process flow?

Screenshot 2024-06-27 102729.png

Please see the attached screenshot for context. While the "ASRS to Done" or "ASRS to POD" subflows are running (because for those two subflows, only one can run at a time), I ALSO want the "ExitQu to AGV" subflow to be running. These two should be running at the same time because they're two different task executers that should be running at the same time in the factory - the ASRS is unloading/loading things onto the racks, while the AGV is moving things to the appropriate queue, both at the same time. How can I make this a reality via the process flow?

I saw another thread that mentioned using process flow instances. I'm still a FlexSim beginner, but as far as I could tell, that method wouldn't work for this, because the ASRS and the AGV are doing a different series of activities, while in that thread, the user was using 2 AGVs that did the exact same series of activities, just with a different pick-up and drop-off location.

FlexSim 24.1.0
processs flowdecidesubflow
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Logan Gold avatar image Logan Gold ♦♦ commented ·

Hi @mfrsagfm, was Jason Lightfoot's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered

The simple asnwer is that you can split the token (Split activity) and have each call a runsubflow. If you need to synchronise after both flows are complete then you can use a Join activity. You can also push and pull to lists to synchronize tokens.

To give you further advice we'd probably need to look at the model to understand what you're trying to accomplish and how you've represented it so far.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.