Get queue data without changing status

i am looking for facility in queue to read a data but not change status to in progress. my requirement is to only process a data if it matches a criteria lie reference ID

In this case you can put it back in the queue using postpone_transaction_item.

1 Like

when i use post pone it will not be accessed using any activity in studio,

Business Case :
Step 1 . Items added to Queue
Step 2 . I check for a value of an item in queue belong to specific reference ID( say 10 queue items) and finish processing them all before picking up other reference item
Step3 - After processing items of specific reference ID will send email as response

?

  1. Get Transaction Item
  2. Check Reference
    3.a Postpone Item
    3.b Process and Set Transaction Status
1 Like

thanks. i will try this way of getting item and incase doesn’t match to post pone it

this is a good workaround where i need to specify a post pone datetime value. this will force me to post pone to some time value which has to be assumed

since that’s a queue (first in first out) if you don’t pospone the item will be retrieved back immediately

2 Likes

Vía API, you can retrieve all the items in queue only to check, and it doesnt affect the status at all…
Try using the HTTPRequest activity, and making the query over the QueueItem dto (it sounds complicated at first but you will see that is possible)

2 Likes

…but this won’t help you. retrieving them in read only will not start a transaction.

i am trying to compare the RPA tools and feel Queue in UIPath to be improved to the level Blue Prism is today :slight_smile:

@badita I have a question here. Say there are two items in the queue and my logic postponed the first item by 5 min. However, if my second job runs in 2 min time, is there a way I run the first item immediately not waiting till the postponed time?

Yes, try to process them in the same job. Check the transactional business process or ReFramework.

Start Job
While (queueItems)
{
GetItem
(SomeLogic)
}
EndJob

How do you check the reference? I have something like this (see attached).


So my workflow upload a datatable to the queue with each row as a new item in the queue.

I want to build a recurring process where the job runs every week and gets the data and uploads it again.
Here are my concerns and i do not know how to address it

• I want my process to retrieve all the items first In the Queue if any and set them to successful, then
• I want the process to check for the existence of the item first by using the reference string which I made the row(0).ToString value
o If the item exists, then check and compare the data in the item.
 If something changes, then update the item.
 If not, then go to the next item.
o If it is a new item , then add it to the queue, and set the status to new