question

David Chan avatar image
1 Like"
David Chan asked David Chan commented

TE got stuck in Run subflow

Hi In the pic, I am trying to use Run Subflow to create token that represents the items in the tote. In the Subflow, I am getting the Op to transfer to another Queue.

1714794871762.png

It seems that the TE got stuck after the Load Task. Checking the ActiveTaskSequence, it is in Wait for Task state. However instead of Run Sub Flow, I replaced it with Create tokens. It works.

I would like to know why Run Subflow causes the TE get stuck and not Create tokens? Any advise? Thanks.

David


TS Operator got stuck.fsm

FlexSim 23.1.4
create tokenrunsubflowte stop
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
1 Like"
Felix Möhlmann answered David Chan commented

The tokens in the sub flow all only use the labels on the parent token. So each subsequent token will overwrite the "taskSequence" label that the previous token created. Timing wise it works out so that the first token can still load the item, but when it arrives at the unload activity the taskSequence points to a different task sequence that hasn't started yet.

Either disallow the child tokens from writing labels on the parent, create a "taskSequence" label for each of them in the Run Sub Flow activity or run them one at a time.

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

David Chan avatar image David Chan commented ·

@Felix Möhlmann Thanks.

I just need to check the box "Copy Labels to Children on Create" to make it works.

1714961608743.png

David

0 Likes 0 ·
1714961608743.png (24.8 KiB)

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.