Question

3
Replies
6345
Views
GANESHB8 Member since 2015 2 posts
Virtusa Corporation
Posted: 4 years ago
Last activity: 4 years 10 months ago
Closed
Solved

How to set the Queue item status programmatically to Scheduled/Broken-Process in the agent activity based on the response from the service

We have an agent configured to run asynchronously (using Agent Queue Management) and  agent invokes a SOAP Service to upload the documents in Content Management ( here we have a separate application 'A' which uploads the document to CM). Agent is working fine if there is any connectivity issues with the Connect-SOAP which sets the Queue item to Broken-Process after attempting the pyMaxAttempts.

We have some business exceptional scenarios where the Connect-SOAP connectivity is good but when the Application 'A' calls a web service internally to upload the document to CM and the CM throws some errors the service response to our agent (Connect-SOAP) sends the error code with proper message In this scenario will have to force the queue item to run again ( change the queue item status to Scheduled) or change the status to Broken-Process so that  prod support team will requeue the item after data fix. But right now the status of the queue item chnages to Success even though there is unsuccessful error code. We tried to set the Queue item status manually to "Scheduled" in agent activity the master agent is overwriting the status to Succes as there is no issue with the agent.

I hope the above explanation is giving proper information else let me know will try to elaborate more.

In short, how to programmatically set the queue item status

Data Integration
Moderation Team has archived post
Share this page LinkedIn