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?
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?
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.
14 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved