question

Marcello Rosadini avatar image
1 Like"
Marcello Rosadini asked Marcello Rosadini commented

Query by token ID in ProcessFlow Tokens Window

Hi,

does anyone know if it is possible to query a specific token by ID in this window?

I have tried different combinations with value.id, gettokenid(value) or name but they don't seem to work.

FlexSim 18.2.2
token id
capturapf.png (101.3 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

Sebastian Hemmann avatar image
0 Likes"
Sebastian Hemmann answered Marcello Rosadini commented

I´m not sure what you are exactly looking for. But for me this works fine:

So it works with standard SQL queries.


query-tokens.jpg (56.1 KiB)
· 3
5 |100000

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

Marcello Rosadini avatar image Marcello Rosadini commented ·

Hi Sebastian, yes, querying a label works fine with me too. What I am looking is a way to query the id of the token. From your example, lets say you want to show only the token which id is 67. Do you know how to do this?

0 Likes 0 ·
Sebastian Hemmann avatar image Sebastian Hemmann Marcello Rosadini commented ·

Hi Marcello, I´ve tried some stuff and as far as I mention the ID is not easily to reference. If I push the ID to a List it sometimes even is not possible to Sort for this value. So it seems as if

token.id

does not work in this SQL field.

As a workaround I would add a label and store the information in there.

Maybe @phil.bobo or @jordan.johnson have a better solution for you!?

0 Likes 0 ·
Marcello Rosadini avatar image Marcello Rosadini Sebastian Hemmann commented ·

Thanks for the effort Sebastian. I am assuming it is currently not possible to do.

I might post it as an idea as I am dealing with a model with a few thousand tokens and 20+instances and the fact that they are sorted by Instance first and then by ID makes it very hard to find a particular token for debugging.

1 Like 1 ·