I have a problem with to hadnling Error in Agent Activity. I created a Advance Agent which will runs ones per day. Agent call a SOAP service and Update the Data table using Obj- methods. If any of the Obj- mathods or SOAP service fails how capture this.
I need to capture the faild request and need to call it back.
In your Connect-SOAP step, add a transition; when "HasMessages" continue otherwise jump to later step. Immediately after Connect-SOAP step, add a Log-Message Step (mode: InfoForced) with the error details and "Queue-For-Agent" step to queue to another table for a retry. This way, if there is an error, system will log it and re-queue it, otherwise it'll jump to later step for normal processing.
Another option is to create a single step flow and call this in agent activity. You can configure SLA and use OOB activities to resume the flow. Flow can be routed to errorWB if it go into error. you can call/add utility in the flow. If service fails you can route back to same assignment with different SLA( i.e next 30 min). After 30 min SLA will trigger the flow and resumes the flow followed by service calls. You can configure Max retry in flow and then can send email notifications to business.