question

Shawn avatar image
0 Likes"
Shawn asked Shawn commented

How to control a group of operators in process flow ?

Hello,
I want to make a group of operator to load boxes,but it keep running task error,that i cant find where is the problem.

Please see the attached .fsm file.
pull-by-globaltable-jn1.5.fsm

Regards,

Shawn



FlexSim 22.1.0
grouptask error
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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Shawn commented

After the first batch of items is transported to Queue1, both operators will start to work at the same time. In your process flow, you tell them to always load the first item from the queue. This causes both operators to want to load the same item, meaning on operator will 'steal' it from the other, leaving them with only four items loaded. The process flow assumes that they will always load 5 items, so the last token in the unload usb flow causes an error, because there is no more item to unload on one of the operators.

To prevent this, you should tell the operators which items to load, so they don't interfere with each other. You can do this by assigning a reference to the item in the event triggered source and then aggregate those references into an array in the batch activity. Using the creation rank of the subflow tokens, each token holds information about which exact item should be loaded.

1652078220524.png

pull-by-globaltable-jn15-fm.fsm


· 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.

Shawn avatar image Shawn commented ·

Got it! Now I know how to worked!
Thanks for your answer.

0 Likes 0 ·