question

Aljoša Jamnik avatar image
0 Likes"
Aljoša Jamnik asked Julie Weller commented

Empty Queue after X seconds

Greetings,

In my model, I don't know how to empty the queue "Prazni vozički" after 8 hours. The only requirement is that the queue gets fully emptied once at this time (8 hours into the shift or in my case 16:00). Any suggestions are much appreciated!

Thank you and best regards,

Aljoša

Empty queue.fsm

FlexSim 23.1.2
queueempty
empty-queue.fsm (23.0 MiB)
· 2
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

Julie Weller avatar image
1 Like"
Julie Weller answered Julie Weller commented

Ok @Aljoša Jamnik! That's pretty simple to implement! I added a source that created a token at 16:00:00 then ran a subflow that systematically moved objects from the queue to the output queues (I did a 50/50 split but you can choose or you could replace it with a delete object.

1687884861327.pngThe trickiest part is getting the subnodes part right, you can look at the model and see how I referenced the queue.

Here's the model:

empty-queue_1.fsm

Does that answer your question?


1687884861327.png (13.5 KiB)
empty-queue-1.fsm (148.5 KiB)
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.