question

mike S4 avatar image
0 Likes"
mike S4 asked mike S4 commented

Copy a token label into another token

Hi,

I was wondering if a token in the Process Flow can copy a label (and its content) of another token. If so, how?

Thanks for the help.

FlexSim 19.0.0
labelstokens
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

tannerp avatar image
1 Like"
tannerp answered mike S4 commented

Hi @mike S4,

I'm not sure that this is what you're looking for, but I've created a simple demo model that copies token labels to other tokens. There's a couple things happening.

First, the Event Triggered Source listens to the Assign Labels activity for a token to pass through. When a token enters, it creates a new token and assigns the old token to a label on the new token called "myToken".

Second, the Assign Labels activity in the second flow accesses the first token through the "myToken" label and then it accesses the label "myLabel," which was assigned in the first flow.

Hopefully this makes sense. Let me know if you're looking for something different.

copy-token-labels.fsm


mytoken.png (12.1 KiB)
mylabel-access.png (8.5 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.

mike S4 avatar image mike S4 commented ·

Yes, thank you very much!

0 Likes 0 ·