question

Kari Payton avatar image
0 Likes"
Kari Payton asked Kari Payton commented

Query resource based on token label.

I am having trouble using acquire resource based on token label. For example, the crane in 3D has a craneNumber label. In process flow -> acquire -> query, I try to use the following phrase "WHERE craneNumber = token.acquireCraneTip". The token has the label acquireCraneTip as the number 1.

If I have the number directly in the acquire query box, it works. However, when I put token label, I get an error "Must by a treenode type Variant". Any way to fix this or is there a better way to query resources with labels? I don't want to use a list but I know it may be the better option lol.

FlexSim 21.2.4
acquire resourcequery resource
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

·
Regan Blackett avatar image
2 Likes"
Regan Blackett answered Kari Payton commented

Try your query like this: WHERE craneNumber = puller.acquireCraneTip . If your resource is referencing the cranes, the token acts like a puller from a list, so you would access the token's labels as the "puller" on the resource.

· 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.

Kari Payton avatar image Kari Payton commented ·
Thanks @Regan Blackett . Learned something new!
0 Likes 0 ·

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.