question

Oscar C13 avatar image
0 Likes"
Oscar C13 asked Oscar C13 edited

Know if there is a specific item within a queue

Hello!
How can you know if there is a especfic item inside a queue? What code do you have to write?
I made a simple model where the operator has to take the item with the "cilindro" label from the queue, and if not wait.
This is not exactly what I want to do in my real model but the idea is that.

I have set "model().find("Queue1").subnodes=token.cilindro" in the decide tool but it doesn´t works.
cilindro.fsm

FlexSim 21.2.1
process flowqueuedecide
cilindro.fsm (37.8 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.

1 Answer

Roi Sánchez avatar image
0 Likes"
Roi Sánchez answered Felix Möhlmann edited

The 'token.cilindro' label does not exist until you create the object in the second Create Object activity, after the Decide activity:

1635499599252.pngWhen you first create the object, you are storing a label called 'box', so I guess you should compare the subnodes with this label. What I don´t understand in your model is why you are checking if there is a certain item in the queue as you are always creating it before the condition.


1635499599252.png (73.9 KiB)
· 5
5 |100000

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