question

Lucas Antonio Risso avatar image
0 Likes"
Lucas Antonio Risso asked Lucas Antonio Risso commented

What is the best way to set a label to another token?

Sample model.fsmI have tried setting a label using approaches such as token.puller / token.pulled (using lists), token in activity, and arrays.

I am trying to find a more flexible way to set a label on a token without having its precise "location" in the process flow. For doing so, I guess using the "id" is a good idea.

However, using the command token.byID(xx), I could not manage how to edit the information into parenthesis to read a table cel or a token label. This approach is used in the bottom part of the process flow of the attached model.


I would also like to know how to create a reference to a token similarly to the one that have made to the processors, using a global table, and also which is the easiest way to use the token Id as a reference.


Thanks for any help.



FlexSim 22.2.2
labeltoken
sample-model.fsm (33.3 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

Kavika F avatar image
0 Likes"
Kavika F answered Lucas Antonio Risso commented

Hey @Lucas Antonio Risso, the only things guaranteed to be unique about a token are its ID and pointer value, so referencing tokens by ID or pointer address would be your best solution. If you have a random name generation method for your tokens, you could use that too, or just any label that you define that you know is going to be unique. What are you trying to use this reference for? If you provide more details, maybe we could help you with a more specific solution to your problem.

· 6
5 |100000

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