Hi, I'd like to ask a question regarding the pull strategy. I want the Processor's pull to process items sequentially based on the maximum counter value in the list. However, I would like it to finish processing all the items of a particular type before moving on to the next type with the next highest counter value. To illustrate with the initial list entries, I'd like to finish processing all 50 items (Process:3, Type:3) first before moving on to the 14 items of (Process:6, Type:8).
Due to the nature of the production line process, not all items of the same type will be waiting in the list for processing at the same time. Therefore, I need to wait until all items of the same type on the production line have been processed before moving on to the next type. How can I achieve this? Additionally, if the future list may contain items reaching up to tens of thousands, what would be the best approach for designing this?