question

Santiago Serrano avatar image
0 Likes"
Santiago Serrano asked Jason Lightfoot commented

Subflows: operator´s task stuck when rull all at a time with task sequences.

Hi All.

when I try to create simple or complicated Tasksequence in subflows the operator gets stuck in one of the tasks and I don't understand the reason to fix it, especially large models.


If you run each task separately from the subflow, executing each task as "Run tokens one at a time" it has no problems, but if you run them all at the same time and separate each task as a "task sequence" so that they remain in the queue of tasks of the operator, it gets stuck in some of them.


I would like to know how to fix the error, because I need the way I assign tasks and priorities (for models with many tasks) can be done this way, since I am controlling almost everything through the task queue.


I attached a picture of a simple model of moving boxes from one queue to another, each task is moving a box. I ran the example sending the same task 10 times. In the first case with one token at a time, it moves them all. But in the second case that only change the token to run them all at the same time, the operator is stuck in one of the tasks, in this case in the unload, but does not even want to do the load.


This error or bug or whatever, I have it since 23.0.7 and this example I did it in 24.0.1.

Thanks por your help.




1707771662453.png


FlexSim 24.0.1
proces flowsubflowtasksequences
1707771662453.png (137.1 KiB)
· 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.

Anutt K avatar image Anutt K commented ·

Can you attach the model file ?

2 Likes 2 ·
Santiago Serrano avatar image Santiago Serrano Anutt K commented ·
0 Likes 0 ·
prueba-sub-flow.fsm (84.0 KiB)

1 Answer

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

On the runsubflow you need to turn off Label Access on Parent Only:

1707865592862.png

For every task sequence that is created it's overwriting the parent token's taskSequence label with the next one so at some point the active token's taskSequence pointer is pointing to the wrong task sequence, and the active task sequence just waits for a new task that never gets added.


1707865592862.png (13.4 KiB)
· 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.

Santiago Serrano avatar image Santiago Serrano commented ·

That work. I only give acces to read Parent label and works well

thanks

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ Santiago Serrano commented ·
What it does is give the ability to add/write labels on each child token, instead of forcing it to use the parent token's label.
0 Likes 0 ·

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.