My model has 3 product types that require transport to a dedicated processor, one per product. Each product has a different priority (10, 20, 30). If there is more than one type of product ready for transport, the highest priority product should be moved.
I create event-triggered (transport reference) tokens to initiate the transport, which accumulate at the Pull Forklift activity if the transporter is busy. They process in FIFO order. How can the tokens be sorted by priority so that when the transporter becomes available, the highest priority token is released?
It seems like a Max Wait Timer may be necessary to reroute the tokens for sorting, and Wait for Event (Transporter List Content Increase) could trigger releasing a token. But how can the accumulated tokens be sorted prior to release?