Hi,
If I query the task sequences of the dispatcher using a custom query that iterates through the task sequences I get an exception if the query does not find anything that matches.
Is this a bug? It seems that it should just return an empty table as the result if nothing is found. If it is a bug, then how do i get around it?
See the attached model where everything works fine until there is nothing that has priority 2 in the task queue. I have an error check for nothing in the queue, but that does not work if there is something in the queue, but not anything with a priority of 2. And the query itself checks if there is so I should not need an error check here in my opinion. I would not use a query if I knew exactly what there is in the queue.
My original idea to use queries is that it would be a more flexible and understandable way to choose the correct task for an operator that becomes available. If there is some smarter way to do this than querying the task queue, then please let me know.
Thank you!
Kind regards,
Axel