question

Nick Brown avatar image
0 Likes"
Nick Brown asked Joerg Vogel commented

How to determine what Resource has been acquired from Global List

Is there a way to determine what resource has been acquired from a global list (resource and acquire resource). I want to be able to model the delay associated with a process based on the resource acquired. How can I determine which resource acquired so that I can lookup the labels associated with the resource in the Global List?

FlexSim 21.0.3
resourceglobal list
· 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.

Matthew Gillespie avatar image Matthew Gillespie ♦♦ commented ·

@Nick Brown

Can you give us some more context? How are you pulling from a list? If you're using a Pull from List or Acquire Resource activity you should have the thing you pulled assigned to a label value based off what you put in the Assign To field.

0 Likes 0 ·
Nick Brown avatar image
0 Likes"
Nick Brown answered

Finally figured it out:


1616004121234.png (22.0 KiB)
5 |100000

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

Nick Brown avatar image
0 Likes"
Nick Brown answered Joerg Vogel commented

So I am able to get the Token ID of the resource that was acquired. Can I use something like token.resource.labels to save all the labels to an array of that 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.

Joerg Vogel avatar image Joerg Vogel commented ·

Yes, but it is a bit different, because this syntax is pointing to the values of the labels and not to the nodes in the tree. There was a similar request to get access to the treenode labels for deleting all label nodes. Instead of deleting the subnodes you can convert them into an array by the method toArray().

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.