question

Cenk ZR avatar image
0 Likes"
Cenk ZR asked Cenk ZR commented

How to pull items from a queue based on a condition ?

Hello,

I have a simple model with a source, queue, processor, and a sink. The objects are getting the label "ProcessTime" and "DueDate" on creation in the source. What I could not do but want to implement is that as follows: when my operator is available, I want him to load the item with the lowest "DueDate", currently present in the queue. I thought of pushing the items to a list when they enter the queue and then pull from the list based on the query "ORDER BY DueDate ASC". However, I could not make it work. After pushing items to list upon their entry to the queue, operator does not pull anything from the list. I might have done some connection or linking mistakes but I could not find the reason. If someone can help me with this problem, I would be appreciated. Thank you very much.

I am also attaching my flexsim file in case someone want to check it.

examplee.fsm

FlexSim 19.0.8
queuelistpull from listpullpull item
examplee.fsm (35.4 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

Braydn T avatar image
0 Likes"
Braydn T answered Cenk ZR commented

@Cenk ZR

You were very close. I cut off your process flow block at the arrow and move it to a new chunk, and then created a new source that fires on Processor exit, with a schedule source that fires at time 0 to "prime" the system.


cenkzr.png (12.1 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.

Cenk ZR avatar image Cenk ZR commented ·

Thank you very much.

0 Likes 0 ·