question

Ajay M avatar image
0 Likes"
Ajay M asked Jason Lightfoot edited

How to run two sub flows assigned to two diff.tasks parllely using Process Flow

Hello Everyone,

Recently I started working with Flexsim and did a lot of interesting tasks, cases etc. A few days ago when I planned to establish a case (below mentioned) in Flexsim I addressed a lot of problems. I tried my best and posted this here so that can share and gain some knowledge.

My primary goal is to load flow items from multiple Queues and distribute them to delivery queues using AGVs. For a better understanding, refer to the attached image.

Process 1: AGV 1 should load a Flow item from Pickup queue1 and deliver it to Delivery Queue 1.

Process 2: AGV 2 should load a Flow item from Pickup queue 2 and deliver it to Delivery Queue 2.

I created a process flow and added two subprocess flows to it (Process 1 and Process 2 ) to execute the above tasks.

Is it possible to run two different sub flows parllely?

Here is the file on which I worked Running_Two_Subflows_Parllely.fsm


running-two-subflows-parllely.jpgcase-explanation.jpg

FlexSim 22.2.2
agvprocess flow task sequencesub process flow
· 2
5 |100000

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

Joerg Vogel avatar image Joerg Vogel commented ·
Instanced process flow is made for this kind of logic. You build only one task sequence. An instance is applied to each of your Taskexecuter.
0 Likes 0 ·
Ajay M avatar image Ajay M Joerg Vogel commented ·
Respected @Joerg Vogel Thank you for the Response. Could this case be possible in the same process flow?
0 Likes 0 ·

1 Answer

·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot edited

There are many ways to do this.

If you're trying to coordinate a single token on completion of both subflows , you could use split and join activities to create two tokens, each of which would invoke different subflows

Or you could define a single subflow that refers to token labels rather than directly referencing objects in the model, and then set the number of tokens to 2 on the runSubflow, adding the required labels to the created tokens based their creationRank.


· 7
5 |100000

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

Ajay M avatar image Ajay M commented ·

Respected @Jason Lightfoot I solved the preceding problem using process flow instances, and it worked. However, for each instance, I must create a new task executer group and source. Is there a way to attach all task executors to a single group and just to one source for acquisition?

0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ Ajay M commented ·
Can you share your model?
0 Likes 0 ·
Ajay M avatar image Ajay M Jeanette F ♦♦ commented ·

Thank you @Jeanette F for responding. Here is the model running-2-subflows-parllely_using_ProcessFlowInstances.fsm

I did my best with the flexsim knowledge I have. Please correct me if I did any mistake.

0 Likes 0 ·
Show more comments

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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