Chapter 9 of Kelton

Problem # 2

I used a status label to see if my expression was working correctly. This expression would then be used in a decide step in an add on process to see if there was an urgent patient waiting for a Doctor.



Unfortunately, that is where I ran out of steam after a lot of attempts to get the model working properly. The error message below indicates that my release stem needs to have a way to not try to release a Doctor resource if the model entity does not have one assigned. This sounds like it should have been easy, but I cannot seem to find a way to check if the resource seized was a Doctor or Nurse. If it had worked correctly, it would have released a doctor if it had previously seized one and was not assigned already to an urgent patient, allowing that Doctor to revert to his initial priority list.






There may be a mch simpler way of doing this. Looking forward to the solutions.