question

Dustin B avatar image
0 Likes"
Dustin B asked Dustin B commented

Critical Timer for queue

I had hope to use an object sub flow to send items that had "expired" while waiting in queue to a dedicated discard queue. However, it looks like due to simulation timing, items are being processed and discard simultaneously. ie. The output from the pre-processed queue is greater than the input.
Is there another trigger / set up I can use to avoid this from happening?
I would prefer not to use multiple pre-processor queues to achieve this if possible.


Thanks,

Dustin

230103 Crit Timer.fsm

FlexSim 23.0.3
queue logicobject flow
230103-crit-timer.fsm (104.6 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.

1 Answer

Kavika F avatar image
0 Likes"
Kavika F answered Dustin B commented

Hey @Dustin B, you can use a Max Wait timer on the "Wait for Event" activity to send tokens that took too long down a different path.

1677717437580.png

At the bottom of the Wait for Event activity, you'll see a check box "Use Max Wait Timer". Check it, set the max wait time, and what to do when that time is reached.

1677717450110.png

As you can see from my above example, on normal behavior, it will continue through; however, on failure (i.e., reached 5 minutes wait time), it will move the box into the Critical queue.

box-wait-too-long.gif

(I sped up the model so it may look like it doesn't wait that long, but it does)

230103-crit-timer_1.fsm


· 3
5 |100000

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