Hello,
I have a simple model with two processors, five different queues and a sink. The arrival boxes are going to the "Queue1" after the source object. At the beginning, there is also a queue called "Queue3", which has a blueitem on it. Before the operator starts working, there has to be a blue item on Queue3. If this condition is met, operator takes the box from Queue1, put it on the processor1. When the operator takes the box from Queue1, the blueitem goes to "Queue4", which is next to processor 1. Then, when processor1 finishes processing and operator 1 takes the box and puts it on to the "Queue2" between the two processors, the blueitem goes to the "Queue5", which is next to processor 2. When processor 2 finishes processing, the blueitem goes back to Queue3, and the system works like this. When there is no blueitem on Queue3 and if new boxes arrive, the corresponding tokens go to wait for event activity and waits until the content of Queue3 increases. However, what I wanted to do but could not do is as follows: if there are three tokens in the wait for event activity that waits the content increase of Queue3, and when the blueitem goes back to Queue3, all the tokens in the wait for event activity are released (this happens around the 132th second of my simulation). If this happens, even if there is no blueitem on Queue3, operator takes the box from Queue1 and starts working. However, I would like to release only the first entered token in the wait for event activity so that the operator can only take a box from Queue1 if there is currently a blueitem on Queue3 and the blueitem can always travel with one box. If someone helps me with this problem, I would be appreciated. Thank you very much.
I am also attaching my flexsim file in case someone wants to check it.