question

Pedro Veiga avatar image
2 Likes"
Pedro Veiga asked Pedro Veiga commented

how to pull a specific taskexecuter from a resource

Hi,


I have 11 taskexecuters at the same resource, but I'd like to pull them based on a label that counts from 1 to 11, and with that number as a reference, pull the specific taskexecuter with that value.


Thanks in advance,

Pedro

FlexSim 24.0.5
acquire 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

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Pedro Veiga commented

· 3
5 |100000

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

Pedro Veiga avatar image Pedro Veiga commented ·

Hi, @Joerg, I tried to use your exemple, but my issue is that the value that I want to use comes from a random statistical distribution. Therefore I need to add this random value to the operators labels.

1731423387042.png

I took your example and tried to adapt into what I need but didn't managed it.

query-labeled-resource.fsm

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Pedro Veiga commented ·

acquire-by-composed-random-name.jpg

@Pedro Veiga, assigning a token label twice with different datatype can work but it is not recommended. You did it from number to treenode. I choose a different value for comparison. A String. List entries are accessed by value keyword. On your Resource list the entries are treenodes. you can get a field value by an expression, too. My token label is an abreviation of your composed treenode reference.
Puller is a keyword to get access to the element that is responsible to initiate a pull from a resource list.

acquire_random_name.fsm

1 Like 1 ·
Pedro Veiga avatar image Pedro Veiga Joerg Vogel commented ·

Thank you @Joerg, it worked as intended.

0 Likes 0 ·