question

Pinakin K avatar image
1 Like"
Pinakin K asked Pinakin K commented

How to select operator in subflow?

I have a subflow that is used by 2 different processes as the operation is same. I want to select an operator to go to a specific location when 2 tokens arrive at the same time in the sub flow:

Only operator 2 goes to its destination, but operator 1 does not move.

The two labels used in assign labels as HSG_Hopper & PAP_Hopper

How should I reference the operators in the travel activity so that they can use the same subflow to travel to different places and load & unload the respective items?

I cannot provide the model due to security reasons.

FlexSim 18.0.2
task sequencesubflow
code.png (23.5 KiB)
flow.png (37.8 KiB)
5 |100000

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

1 Answer

Jordan Johnson avatar image
2 Likes"
Jordan Johnson answered Pinakin K commented

In the Run Sub Flow activity, you should assign a label called Operator on the tokens that are created. For the value of the label, you can use the code you have given above. Then, in the Task Sequence activities, you can just reference token.Operator, and it will reference the correct operator.

· 6
5 |100000

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