question

Conner F avatar image
0 Likes"
Conner F asked Matthew Gillespie commented

Tokens not pushing to a list correctly

trial2.fsm

I am trying to push and pull tokens from a single list for a simple inventory tracking process flow. currently there are no partitions or labels I am just trying to push and pull tokens but the tokens are not being pushed to the list after being pulled. I have attached my model below, I am not sure what I am missing since it is a fairly simple model. Any suggestions and help are appreciated.

FlexSim 19.1.1
listpush and pull list
trial2.fsm (30.5 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

Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered Matthew Gillespie commented

The tokens seem to be pushing to the list correctly. Here's a screenshot from time 30240, all the tokens sitting on the Push to List activities can be found at the end of the list of Entries:


pushed.png (75.2 KiB)
· 4
5 |100000

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

Conner F avatar image Conner F commented ·

Okay I see that. Why do the tokens seem to queue up at the push to list activity? Is it because the tokens are waiting to be re-pulled from the list?

0 Likes 0 ·
Matthew Gillespie avatar image Matthew Gillespie ♦♦ Conner F commented ·

This is the default behavior of the Push to List and Pull from List activities. To quote the documentation of the Push to List activity:

By default, this activity does not finish until the entry is pulled from the list. This means that a token will remain at a Push to List activity until the Push Value has been pulled off the list...

You can use the Max Wait Timer to cause the token to push a value to a list and then move on to additional activities.

As the documentation hints at, if you want the token to push something on the list and then immediately move on you should check the Max Wait Timer checkbox and also the Keep on List on Early Release checkbox. However, this wouldn't really work in your model as it currently stands because you're pushing the token itself on the list. So you wouldn't want to push the token then have the token move on and disappear in the next Sink activity. This works better for models where the token is pushing an item or something else on the list.

0 Likes 0 ·
Conner F avatar image Conner F commented ·

Okay thank you, I think I will try something else in my model that will give me the desired behavior I am looking for

0 Likes 0 ·
Matthew Gillespie avatar image Matthew Gillespie ♦♦ Conner F commented ·

Feel free to post another question if you need help finding that desired behavior.

0 Likes 0 ·