This is for a shipping scenario. There is a cargo ready schedule that shows the dates the cargo items are ready to ship, along with their corresponding information (GlobalTable1). Every time a cargo is ready at the queue it can be transported to the inspection area and then to the shipping dock where it can be loaded to a TE. The only condition for this to happen is that orders can only leave the queue if all the cargo items that are part of that order are in succession. To give an example (please see global table in the model): Order 1 has two cargo items and they are ready one after the other. This means that as soon as cargo 1 is ready it can leave and the same thing for the cargo 2. Now for Order 2, 2 cargo items are in succession but then there's a cargo item from order 3 that is going to be ready before the last cargo item from order 2. This means that all items from order 2 have to wait until the last cargo item from that order is ready before the can leave the queue (same for order 3). Items are only transported one at a time and cannot be batched (they are large items) . Any suggestions on how to approach this issue?