question

Akila_indeewara_kulathunga Wad avatar image
0 Likes"
Akila_indeewara_kulathunga Wad asked Jeanette F commented

Releasing items from one queue to another only if the second queue is empty

I want the queue 2 to release items to queue 3 only if the queue 3 is empty. How is it possible to do that?

Sample Model2.fsm

1717516807433.png


FlexSim 24.1.0
queues
1717516807433.png (210.0 KiB)
sample-model2.fsm (28.0 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.

Hi @Akila_indeewara_kulathunga Wad, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

When an item enters Queue3, use the On Entry and On Message triggers to close the input after some small amount of time (to allow for items to enter in that instant).

In the On Exit trigger, open the input again once the last item exits.

sample-model2_1.fsm


sample-model2-1.fsm (28.8 KiB)
5 |100000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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