Question

1
Replies
768
Views
MarianeA Member since 2016 72 posts
Murex
Posted: January 24, 2017
Last activity: January 25, 2017
Closed

Detecting 'Service Unavailable' (Server error) when using Connect-REST

Hello,

We are using a Connect-REST (method POST) and implementing a customized error handling.

When the service is unavailable (HTTP status 503) we need to catch it in Pega and inform the user that the service is unavailable.

Configuration information:

Connect-REST's processing option is intended for "queuing (response will not be available)"

Activity calling the Connect-REST: 

If Execution Mode is set to 'Queue', tracer does not detect a Fail when the service is unavailable (pyStatusValue=Good). However, if we set the Execution Mode to 'Run' then we can detect a Fail when the service is unavailable.

Concern:

Our concern in the 'Run' execution mode is that the next steps of the activity containing the Connect-REST does not execute until the connector response is received which could cause a problem if the response took a lot of time until it reaches Pega (bad user experience).

Question:

Is there a way to be able to detect if the Connect-REST got a 'Service Unavilable' response error (or any other Server error) while avoiding synchronous execution (only to avoid a bad user experience if response took a lot of time) ??

 

Thank you,

Mariane

***Moderator Edit: Vidyaranjan | Updated Categories***

Data Integration
Moderation Team has archived post
Share this page LinkedIn