title: AnyLogic - Identify seized ResourcePool
body: <p>I am modeling a service process in AnyLogic thorugh hybrid simulation (DES + Agent based).
  In this process, I have different resourcePools, one for each employee available in the process. What I would like to knwo, is if I can get, through an AnyLogic function, the ResourcePool currently used by the seize block.The reason why I am needing this information is because then, by using a funcition, I will assign different delays based on the resourcePool seized (e.g., 10 minutes is is rpA, 15 minutes if it is rpB).
  I attach a shot example to show my problem.
  Let's suppose this is my process:</p>
  <p><a href="https://i.stack.imgur.com/DFSuo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DFSuo.png" alt="Process" /></a></p>
  <p>I tried to follow the example shown in this post <a href="https://stackoverflow.com/questions/56579324/anylogic-getting-resource-pool-from-a-seized-resource">OtherQuestion</a></p>
  <p>Thus, I created a variable myPool</p>
  <p><a href="https://i.stack.imgur.com/KrgFi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KrgFi.png" alt="myPool" /></a></p>
  <p>To be used in the seize and module</p>
  <p><a href="https://i.stack.imgur.com/CqQ0f.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CqQ0f.png" alt="seize" /></a></p>
  <p>and in the resourcePool</p>
  <p><a href="https://i.stack.imgur.com/lzXG5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lzXG5.png" alt="rp" /></a></p>
  <p>But I am constantly receiving errors when compiling the model (e.g., &quot;The method myPool() is undefined for the type Main&quot; in the rpA and rpB, and &quot;The method myPool() is undefined for the type Main&quot; in the seize.</p>
  <p>My java skills are really basic so I am not really understading how to write the code I need in this question <a href="https://stackoverflow.com/questions/56579324/anylogic-getting-resource-pool-from-a-seized-resource">OtherQuestion</a> to solve my problem.</p>