AnswerHub Upload Issue
Our AnswerHub community currently has a bug that prevents you from attaching your model or other files to your questions. AnswerHub is aware of this issue and they are working on a fix. Until we receive their patch, you can upload your models and other files to FlexSim's file share site. Include the file name in your question so that we know which upload to reference.

question

shanice.c avatar image
0 Likes"
shanice.c asked shanice.c edited

The sequence of token leaving activity

When there are many tokens in a wait for event activity, does the earliest entering token always leave the activity once the event happen? For example, in the picture there are 100 tokens. Is there a mechanism that could let earliest entering token leave first. In my model, I have given each product an ID, the ID is given by the order it is created by source object. But I found cassette is not leaving by FIFO by looking into the time each product leave the QueueIO. I have recorded this in a GlobalTable(CSTTimeTable).


1634889699782.png

1634889427269.png



FlexSim 21.2.0
processflowwait for eventtokens
1634889427269.png (70.0 KiB)
1634889699782.png (29.6 KiB)
1022.fsm (944.6 KiB)
· 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.

Hi @Fiona C, was Joerg Vogel's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered
A wait for event activity releases all tokens, if the right event occurs. You can specify the token by an attribute like a label value, that must match to distinguish between all waiting tokens.
· 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.

hi @Joerg Vogel, so in order to only let earliest entering token leave first, I have to use a label to record the timing each token entering wait for event activity.
0 Likes 0 ·
I would test an unknown behavior. I build a process that collects many tokens in a wait for event activity. Then I create another token which is responsible for a triggered event. Then I watch what happens.

Next step is to compare labels of waiting to event tokens. And I watch again.
You can always wait here for an answer, but at the end you will check it anyway. Then you can test it yourself before waiting for an answer.

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.