question

Jane T avatar image
0 Likes"
Jane T asked Jane T edited

Can you access all the tokens in the simulation with their current labels?

I was wondering if it was possible to have a table or list or something that holds the current labels/details of all tokens in the simulation (similar to the active resource list entries table but for tokens)? I am looking to batch tokens into group sizes based on the number of tokens that have a particular label in the simulation - for example if there are six tokens currently in the simulation with colour label = red, then i want the batch size to be six.

FlexSim 20.0.10
labelsliststokenstablesflexsim 20.0.10
5 |100000

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

Roi Sánchez avatar image
2 Likes"
Roi Sánchez answered Jane T edited

Hi @Jane T, if you go to your Process Flow view and click on the VIew Tokens button on the properties tab, you´ll see a list of all the current tokens in your Process Flow. You can arrange it to view them by Activity, Resource, etc. You can also write queries filtering for instance by a particular label value.

1626949182309.png


1626949182309.png (70.7 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.

Jane T avatar image Jane T commented ·

Hi Roi, thank you for the answer. This is exactly the sort of thing I am looking for. Is there a way to access this (or something similar) using FlexScript?

0 Likes 0 ·
Steven Hamoen avatar image
1 Like"
Steven Hamoen answered Steven Hamoen edited

@Jane T

You can create a global table or an array for each of your labels and when ever you add the label to an token you increase the global counter. When the token hits the batch activity you can use this global table or array to check how many you have to batch.

5 |100000

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