question

ruven avatar image
0 Likes"
ruven asked Jason Lightfoot edited

How does default queuesize work in list properties?

Hi everyone,

I need the current amount of tokens, which are located in a specific list in process flow (see attached model: QueueSize.fsm). Unfortunately the value, which my lists are returning by default, does not match with the actual content of tokens in the list. From my point of view the lists are returning the quantity of tokens from the whole process flow. Furthermore, in an active process the right amount of tokens is shown as number in the list box, but queueSize returns another quantity. queuesize.png

Could you please help me finding a way to return the exact content at a certain list?

I have already tried to play around with the code "value.up.subnodes.length" in the lists properties (fields), but it has not worked yet. So how does the default queue size in list properties work?

Thank you in advance.

Best regards,
Ruven

FlexSim 22.1.1
process flowlistqueue sizelist fieldslist properties
queuesize.png (27.4 KiB)
queuesize.fsm (32.5 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

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

The numeric value in the token icon shows how many tokens are in the list.

It sounds like you're looking for this:

  1. Table.query("SELECT SUM(queueSize) FROM ItemList1")[1][1]


· 4
5 |100000

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