Mamdouh Mubarak Posted October 24, 2018 Share Posted October 24, 2018 Hi, What is the best way to access entities in a queue and select entities of a certain type to be processed first? I want to do this dynamically as the model is running. Thanks! Link to comment Share on other sites More sharing options...
CWatson Posted October 24, 2018 Share Posted October 24, 2018 The easiest way to do this dynamically is to use the Dynamic Selection Rule property on the Server (or other object, such as Combiner, Worker, etc.). You can use the 'Standard Dispatching Rule' option for that property to then include a Dispatching Rule, such as FirstInQueue, LeastSetupTime, EarliestDueDate, LargestPriorityValue, etc. This allows you to specify a TieBreak Rule as well. Using the dynamic selection will not determine which entity will be selected from the queue until the resource (object) has released an entity and is available. Link to comment Share on other sites More sharing options...
Mamdouh Mubarak Posted October 24, 2018 Author Share Posted October 24, 2018 Sounds good. If I adopt this approach, how can I dynamically change the priority of the entities in the queue? In my system, the priority needs change over time. Thanks. Link to comment Share on other sites More sharing options...
MEagar Posted October 28, 2018 Share Posted October 28, 2018 Search the entity whom needs to be reassigned a priority, and use an assign block to give entity.priority a new value. Hope this helps. Link to comment Share on other sites More sharing options...
tulach Posted October 29, 2018 Share Posted October 29, 2018 Sometimes it helps to have entities inserted into more queues for quicker selection. Something like a card indexes in the libraty. That way you can shorten the search steps time. Link to comment Share on other sites More sharing options...
Recommended Posts