How can we track a queue item after it gets processing
To track queue items status, go to Orchestrator → → queues, select your queue, click on 3 dots and view transactions.
This will show you the list of transactions on that queue with their current status. To view further info about each of the transaction, you can click on 3 dots right next to the transaction and select view details.
That’s how you can look at queue data.
Hope this helps.
How can we track without using orchestrator or is there any other way?
Hi @info4learn.sahil ,
Yes, you can track the status of the queue item without checking on the Orchestrator. Please check the below post.
Hope this helps you. Thanks
Yes, you can use TransactionItem variable(as mentioned by @PAVITHRAN as well) within your code to access items of queue and their details/status/type etc.
If you are using re-framework, you need not do much specifically to be able to get its status or keep track as this framework has inbuilt workflow file(Settransactionstatus.xaml) which after every transaction, go to the queue, updates its status accordingly.
Attached is the .xaml file
SetTransactionStatus.xaml (40.3 KB)
In case you are not using re-framework, you can still use this .xaml, modify it per your requirement. But I would highly suggest the usage of re-framework to understand the working of queues in a better way, also this framework has inbuilt mechanism for exception handling and logging.
I am attaching re-framework documentation too here, reading this itself will give you enough idea on how you can deal with queues in a workflow.
REFramework documentation.pdf (507.8 KB)
But may be it changes the status to in progress of every new item and doesn’t capture the existing ones like failed, successful. Which I don’t want to happen while tracking the queue items
Hi @info4learn.sahil ,
As @sonaliaggarwal47 suggested, use a ReFramework and try keeping the Get Transaction status activity at the end of the current item’s processing (may be at the end of Process state after set transaction status), so that you can record your item’s status whether it got Success/Failure.
Yes, it changes the status to in-progress as soon as item is picked up for processing. Then as soon as that item is processed, it will go to ‘finally’ block of try catch in process state which is where settransactionstatus.xaml will be called to update the final status of queue to success or failure.