Hi
@Fuad MoalinFirst you need to understand is that the Items in the Work Queue have different status. (Pending, completed, expectioned and locked).
When you use the actions "Get Next Item" you get first item in the Queue that is in pending status. This turn the item into a locked status to prevent other process or runtime resources to work at the same time with this item. If you don't mark it as completed or with exception or pending again, its turn automatically as Exceptioned.
I comment this, cause you are turning as exceptioned all the process with this loop.
So... how to get all the items.
For this you have some options. Blue Prism has the internal VBO Works Queue, here you have 4 different actions to get all the items in the Queue.
- Get Pending Items
- Get Completed Items
- Get Exception Items
- Get Locked Items
All of this 4 actions returns you a collection with all items by state
But with this you only get the Item Id. You need to performe a loop and use the Action "Get Item Data" to get all the information of the item.
I put you here an interesting article of how Work Queues works:
https://bpdocs.blueprism.com/bp-6-7/en-us/control-queues.htmlHope this helps you! And if this solves the problem, remember mark as the best answer!
See you in the Community, bye
🙂