question

poopatel avatar image
0 Likes"
poopatel asked Jason Lightfoot edited

Check content of Queue

Hello how can I see the values of all the content in the queue

FlexSim 23.2.0
queuetokensselect query
· 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.

Ashish avatar image Ashish commented ·
You can check the content in statistics, in the property window for the queue.
0 Likes 0 ·

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot edited

To get a summary of the content of all fixed resources you can use:

Table.query("SELECT Name, Object.subnodes.length AS Num FROM Objects() WHERE 'FixedResource' IN Classes").cloneTo("Content");

which will give something like this:

1708604554242.png

If you want the items broken down by some label you can use :

Table.query("SELECT Object.up as Container, Object.ItemType AS Type, count(*) AS Num FROM Objects() WHERE Class=0 GROUP BY Type, Container").cloneTo(Table("Content"))

Which will give you something like this


1708604695225.png

SummarizeModelItemContent.fsm

To find that for one queue you can add to the WHERE clause Object.name='Queue' or you can use

Table.query("SELECT Object.ItemType AS Type, count(*) AS Num FROM Objects('Queue') GROUP BY Type").cloneTo(Table("Content"))

5 |100000

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