I have a sequence of Services that require the same resource (a worker). I want that that the worker follows the sequence, instead of randomly choosing the service to operate. How can I set the priority of the ResourcePool's queue ? Thank for your time
In general for these cases, using a service is not the right approach instead you should use a seize block in the beginning, make the agent go through all the services (which will be represented with delays now since your resource is already seized) and after your worker has done everything you can use the release block.
Remember that a service = seize + delay + release
Using a service is only justified if your worker needs to go through the sequence, but it doesn't matter what agent he's processing (which will work with Benjamin's solution)