question

Max B avatar image
0 Likes"
Max B asked Matthew Gillespie commented

When does an Acquire Resource Query get evaluated?

Hello,


I have a model that uses a very basic WHERE operation to acquire an object resource based on one of its labels in the Process Flow. When the condition is not met, the token remains at the Acquire Resource block, but when a a label on the needed resource changes so that the condition is met, the token still remains.

I was able to circumvent this issue by quickly acquiring and releasing the resource at the event which changes the label to meet the original condition. Is there another, more direct way to do this? What is it that triggers the query evaluation?

Thanks!

FlexSim 19.1.2
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

Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered Matthew Gillespie commented

You should read through my answer to this other question. That question is about lists, but if you're using queries with a resource then it uses a list under the hood.

· 2
5 |100000

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

Max B avatar image Max B commented ·

Thanks for the quick response, apologies for the duplicate question

0 Likes 0 ·
Matthew Gillespie avatar image Matthew Gillespie ♦♦ Max B commented ·

No worries. It's hard to know what search terms to use for this issue.

0 Likes 0 ·