UiPath robot select 如何根据截止日期和优先级处理队列项目?

How UiPath robot select the queue items to process based on deadline and priority?

RPA练习题试了很多次,唯一做错的就是这道题,谁能帮我解释一下?

我认为 documentation on queues 对队列的处理方式给出了最好的解释:

Processing Order Within any given queue the transactions are processed in a hierarchical manner, according to this order:

Items that have a Deadline, as follows: a. in order of Priority; and b. according to the set Deadline for items with the same Priority.

Items with no Deadline, in order of Priority, and a. according to the rule First In, First Out for items with the same Priority.

所以基本上,如果项目有截止日期,那么它将 运行 根据该日期截止日期使用优先级的任务。你的例子应该因为优先级而获取 Ref1,然后是 Ref3 因为日期早,然后是 Ref2,然后是 Ref4。当项目没有截止日期时,它只是使用先进先出的方法并按顺序处理它们,因此 Ref4 优先级无关紧要。