Hi,
I am trying to model this situation:
One vehicle picks up entities "On Demand" from two locations (TransferNodes) and send them to Sink1. Entities with high priority arrives at TransferNode1, while entities with low priority arrives at TransferNode2. When I choose the Ranking Rule to be Smallest Value First and the Ranking Expression is ModelEntity.Priority in the Resource Logic of the Vehicle, the Vehicle picks up entities probabilistically from the locations. How can I make the Vehicle picks up the entities with the highest priority first and once it is started picking at one location (say TransferNode1), I want it to keep picking up the entities from that location until the RidePickupQueue of that location is empty. Then the vehicle can move to the next location, finish it up, and so on.
I think I need to add a logic on the Evaluating Transport Request Add-On Process Trigger on the Vehicle but I do not know how. Any help is appreciated.
Thanks,
Omar