I am looking through your model and I can't seem to find where you push to a list. I am assuming the items in the rack will be pushed to a list.
The easiest way to to do this would be to use process flow and have an event triggered source on the queue, that will trigger when it decreases to or through 2. This is an existing option on the event triggered source. You can then pull from the list, assign the list entry to a label, acquire an operator (TaskExecutor1), have it load the object stored in the label, and then have it drop it off at the queue.
Please let me know if this is not the logic you are looking for.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.