Limit number of items in a list?

Limit number of items in a list?

zbarachki
Enthusiast Enthusiast
19 Views
4 Replies
Message 1 of 5

Limit number of items in a list?

zbarachki
Enthusiast
Enthusiast

[ FlexSim 22.2.0 ]

Hi,

Is there a way to limit the number of items that can be pushed to a list?
We are currently doing this using zones and it gets tricky because our tokens are operators that go around in a loop, so we have to create item tokens in a separate flow using event triggered source and add that to a zone. To reference the zone we need the operator token to wait for event until zone content reduces. If lists can be limited to number of items then that would be a cleaner solution.


Thanks!

0 Likes
Accepted solutions (1)
20 Views
4 Replies
Replies (4)
Message 2 of 5

jason_lightfootVL7B4
Autodesk
Autodesk

Can you post your model with references to the particular zone you're trying to get working? It may be that you can use a partition or global zone depending how the model is set up.

0 Likes
Message 3 of 5

joerg_vogel_HsH
Mentor
Mentor
Accepted solution

You cannot limit a list. You can start a list with an initial content of entries, you pull entries and push only those entries back to such a list. That is an approach to get a limited entry list. Such a list acts similar to an acquire resource activity.

Message 4 of 5

zbarachki
Enthusiast
Enthusiast
@Joerg Vogel , thank you, I will keep that in mind.

I was able to do something similar by using a wait for event On Content Change of the global list that I was using.

0 Likes
Message 5 of 5

zbarachki
Enthusiast
Enthusiast

Jason, thank you for responding.
We got this working by using wait for event On Content Change of the global list before an item gets pushed
I was trying to eliminate having to use the zone entirely because lists seem so powerful.

0 Likes