I am confused about getQueueItems. What I was expecting is you would filter queue items to some subset for processing. Then you would process them one by one (say enter transaction values into some program, disburse payment, etc.) Once done it would transition to Successful. However, I can’t seem to find anything that lets me change the status to In Progress or Successful.
Set transaction status fails if you do that. So does set transaction Progress. So if I use GetQueueItems and then process them, I will have submitted a bunch of work, and it will still stay in the “New” status which could lead to duplicate processing.
Likewise, the getTransactionItem field doesn’t allow you to pick a specific item, so I can’t select the first item from GetQueueItems and then select that specific item from getTransactionItem.
So that leaves me thinking GetQueueItems isn’t really meant for processing a transaction, but for possibly getting queue statistics. What is a real world use case of that activity? It seems so counter-intuitive.
Also the idea that you can fully process a GetQueueItem but not mark it complete is very dangerous in my opinion.