I am trying to model the functionning of an operating room. I modeled the process before, during and after the surgery.
Each patient has a label called rang_journee which is their surgery rank. If a patient A is ready to undergo surgery, they can only start the surgery if there is no patient with a lower rank than them in the model.
For example, patient 1's rank is 10 and patient 2's rank is 20. If both patient are in the model and patient 2 is ready to undergo surgery before patient 1, it will still not receive the surgery.
In order to model that I :
- created a List in which I want to push all the rang_journee of the patient that are in the model but that did not start the surgery yet ;
- created a "push to list" activity. It pushes the rang_journee in the list when the patient is created and release the token immediately (see figure 1)
- created a "pull from list" activity just before starting surgery. It should work as a filter to only let the patient with the lowest rank start (see figure 2). I cannot seem to make it work though.
My question is : how can I change that "pull from list" activity so that it only allows the patient with the lowest rank to go to the next step ?
Thanks in advance !