I would like to know when worker stop moving. So I waituntil his location = his destination.
But for the workerPool I can't use this trick because when a worker exit from a workstation his location is set to workerPool. What ever his distination and his actual location.
Is it possible to know if a worker is moving ?
ok, the location of the worker is WorkerPool, while he walks, but he is not waiting when he is walking, so you could try the condition:
worker.location/= workerpool or worker.waiting
One problem is the workerpool, after walking to the workerpool the location doesn't change, so you need a second observer for availableForMediation ...
Your solution is a little bit tricky but it works.
I would have prefered a build in solution like an isEnrouteToDestination or isTransporting or isMoving.
Thank you for your time.