question

Stan Davis avatar image
0 Likes"
Stan Davis asked Ryan Clark commented

Determine Qty of Pending Resource Requests

I need to determine the quantity of pending requests for a given resource.

This question is similar to the one answered here..

https://answers.flexsim.com/questions/53887/determine-number-of-available-resources.html

but instead of the number of available resources, I need to quantify the current requested need of resources that is not satisfied. Thanks.

FlexSim 21.2.4
resourceacquire 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

Ryan Clark avatar image
0 Likes"
Ryan Clark answered Ryan Clark commented

Hi @Stan Davis,

You can still use the getstat() command like in the post you referenced. You just need to replace "ResourceAvailable" with "RequestContent."

getstat(resource, "RequestContent", STAT_CURRENT, current)

I hope this helps! Let us know if you have further questions!

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

Stan Davis avatar image Stan Davis commented ·
That works. My situation required a reference to a resource group instead of numeric. Thanks - Stan
0 Likes 0 ·
Ryan Clark avatar image Ryan Clark Stan Davis commented ·
You're welcome! Glad to help!
0 Likes 0 ·