question

SAMUELPD avatar image
0 Likes"
SAMUELPD asked SAMUELPD commented

Wait to event (queue empty)

Hello

In this model, I need to download these items when queue4 is empty, I try with a (wait for the event), but I'm not sure if any of these events work for that, or some other way to do it.


I tried with diffrents but not work jet.

1744121590956.png
Thank you


Wait to event question .fsm

FlexSim 25.0.2
wait for event
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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered SAMUELPD commented

The event you have selected (On Content Change) works for this. The "Value" should be 0 though if you want to wait for the queue to be empty. And you would need to the "Fire If Initial Value Meets Rule" option, so the token can continue if the queue is already empty when it arrives at the activity.

The placement of the activity in the screenshot makes me unsure how this should interact with the crane from your other question though.

stop-crane_2.fsm


stop-crane-2.fsm (54.2 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.