Ask the Simul8 Community

Combine collect function and prioritising in queue

Created at
in Community support

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.


  • Was this answer helpful?


    Hi vargas21, have you managed to work out what was causing your odd results? Feel free to send your model to and they will look at it for you.

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Attach file
Attach image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file