Ask the Simul8 Community

Combine collect function and prioritising in queue

vargas21vargas21
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.



Answers

  • Was this answer helpful?


    0

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

Leave a Comment

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