Content limit in a Queue for different products

Content limit in a Queue for different products

tobias_t2
Not applicable
135 Views
7 Replies
Message 1 of 8

Content limit in a Queue for different products

tobias_t2
Not applicable

[ FlexSim 19.2.1 ]

queue.fsmI would like to use one Queue for two different products. Besides, I would like to limit the content for both products. The Queue can contain 720 products (type 1) or 340 products (type 2). I failed to use one Queue and restrict the maximum content for the different products. I have two Queues in my model. Each product type has its own Queue. The problem is that the Processor fills the two Queues, although I would like to limit the content, because there’s not enough storage for both products. Is there a possibility to limit the storage for the different products?

0 Likes
Accepted solutions (1)
136 Views
7 Replies
Replies (7)
Message 2 of 8

cliff_king
Not applicable
Accepted solution

One way would be to use the Pull Strategy and Pull Requirement fields of the Queue to control entry to the Queue based on the current number of each product type already in the Queue and the product type of the item trying to enter the Queue.

Another way would be to continue using two separate Queues for each product type, but then control flow into the two Queues using stopinput() and resumeinput() commands based on the total content of both Queues.

0 Likes
Message 3 of 8

tobias_t2
Not applicable

Hi,

thank you a lot for your help! I don’t find “stopinput“ and “resumeinput“ in the pull settings oft he queue. Do I have to edit the code directly?

0 Likes
Message 4 of 8

tanner_p
Not applicable

The stopinput() and resumeinput() commands can be placed in Triggers or Custom Code activities (Process Flow). I've added an example of this in your model.

24370-closeinputqueue.png

queue-update.fsm

0 Likes
Message 5 of 8

tobias_t2
Not applicable

Thank you very much for your example! Do I understand it right that your example was for one queue and I have to repeat the steps for the 3 other queues?

0 Likes
Message 6 of 8

cliff_king
Not applicable

Tobias, take note of the edits I made to my original reply because I made some corrections! Cliff

0 Likes
Message 7 of 8

tanner_p
Not applicable

@Tobias T2,

Sorry for the delayed response. You are correct. Because the Event-Triggered Source is listening to one queue ("Queue Product 2~2", as shown below), the token label "Queue" is only going to reference the queue that is listened to. You will need to set up flows to listen to and control the correct queues in addition to the one I made as an example.

24508-token-queue.png

0 Likes
Message 8 of 8

braydn_t
Not applicable

Did this answer help you? If so, could you please accept it? If not, could you let us know what else we can do to help you? Thanks!

0 Likes