How to check if an item exist in the queue or not?

orchestrator
queue
activities

#1

Hi There,

Is there a method or activity which identifies whether anymore items exists in the queue or not.?

Below is my workflow. I am looping through all the items in my queue, however after the last item of the queue is fetched the execution stops by throwing an error which looks obvious since its looking for more items from the queue which doesn’t exist. I would like to check in advance if an item exists in the queue before i perform ‘Get Transaction Item’. Any suggestion would be helpful.

image

Thanks,
Rammohan B.


#2

Hi @Rammohan91,

You can within your workflow: to have a condition after Get transaction item TransactionItem is nothing and if it’s false to continue with the item processing, if it’s true with a log message activity “No more items to process”.

after get transaction item use decision box to check the item is available or not.

Regards,
Arivu


#3

Thank you so much @arivu96. It worked. Didn’t thought it would be that simple. :slight_smile:

Thanks,
Rammohan B.