Combine collect function and prioritising in queue
I have one queue feeding into one activity. Within the queue I am prioritising based on a label, as I want entities with a higher label value to be put to the top of the queue. At the activity, I need to set a collect number which depends on the total size of the queue (visual logic code used to check queue count.contents, and then sets collect number based on that, with more entities set to be collected the higher the queue is). When using the priority option in the queue I am getting odd results - everyone in the queue appears to be being processed very quickly, so it seems the collect function may not be working. When I switch off the priority option, the results make sense.