question

Victoria M avatar image
0 Likes"
Victoria M asked Victoria M commented

How to release in item from a queue only if the queue is full?

I want the queue to release one item to the next process only if the queue has reached it maximum capacity.

The capacity of the queue is 6.

FlexSim 20.0.0
flexsim 20.0.0decision queue
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

SudheerReddy avatar image
0 Likes"
SudheerReddy answered Victoria M commented

@victoria.m I used Push and Pull from list to achieve what you said.

Event Triggered Source is used to Push all the items which enter into to the Queue1.

In another flow where wait for event is fired when Queue1 has 6 or more capacity and Pulls item from Queue1.

Below is the model for reference.

QueConstraint.fsm


1595098464208.png (59.8 KiB)
queconstraint.fsm (34.4 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.

Victoria M avatar image Victoria M commented ·

Thank you very much!

0 Likes 0 ·