question

i-tesng avatar image
0 Likes"
i-tesng asked Julie Weller commented

How to make the sink queue wait for two days before arriving at the sink

FlexSim 22.2.0
queuesinkwait
改善前.fsm (1.5 MiB)
· 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.

Julie Weller avatar image Julie Weller commented ·

Hi @i-tesng, 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

You'd need to set the Send To Port option to not release the item and create an event that releases the item two days later.

This could be done by sending a message to the queue in the Send To Port code and release the first item from the queue in the OnMessage trigger.

You could also use Process Flow. An Event-Triggered Source reacts to the Send To Port code firing. The created token then waits two days and releases the item afterwards.

There are probably many more variants of how this could be build. Which one is the best will depend on personal preference and other information: How does this logic interact with the batching for example? Does the 2-day-timer start when the first item arrives or when the batch is complete? Is is correct that the queue should not receive any extra items during the wait period (Flush between batches)?

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.