Count number of labels that have the same value
I am trying to use routing in collection with the function of matching (for the same label value). However, the number of collection is not a fixed value, the collect value can be between 30 - 54, but they must have the same label value. For example, if the number of items that have the label value of 1 is 44 in the queue, then the activity will collect those 44 items. if the number of items with the label value of 2 is 60, then it will collect only 54 of them. I think I need to use VL, but have no clue where to start.
Also, at the end of the process, I need to batch them out (I have to assemble them during collection), which means, whatever number that were used to collect, must be the number for batching out.
Any ideas? Thanks in advance!!