question

G C avatar image
0 Likes"
G C asked Matt Long answered

Label Matching/Assignment

When I use label matching assignment at a wait for event activity, it returns a label value on the token such as "id:1"

This doesn't mesh well with the gettokenbyid function, I'm guessing because of the "id:" prefix. How do I get around this?

Choose One
process flowlabels
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

·
Matt Long avatar image
0 Likes"
Matt Long answered

Your id:1 is a reference to the token with the id of 1. The label table is displaying the name and id of the token (if your token has no name, then all you see is the id:1). You can confirm this by selecting the label and clicking on the binoculars and/or the red box. The binoculars will center the referenced token in the process flow view. The red box will select the token. You can treat this label as if it's a token. For example, if you want to access a label on it, or get its id you would say something like:

token.LabelWithID1.LabelIWantToGet
or
gettokenid(token.LabelWithID1) // returns 1

You don't need to use the gettokenbyid command because you already have a direct reference to that token.

5 |100000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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