Exception handling in STP
When Pega is being used as a headless application (using services mainly) to communicate with external systems, which is the best /ideal way to handle exceptions that may occur in processing within Pega? for e.g. as a part of the headless processing , Pega needs to call a couple of 3rd party systems for data, in case the communication fails (connection problems/ validation errors/ system errors etc) the process flow / processing within pega needs to be smart enough to identify the error and communicate back to the calling system and also have provisioning to continue from the last completed step when the request is tried again by the calling application.
Is there a way to do this other than creating a work item in Pega which proceeds through the flow and on exception calls the FlowProblems/ ConnectionProblem flow?
***Updated by moderator: Lochan to add Categories***
When Pega is being used as a headless application (using services mainly) to communicate with external systems, which is the best /ideal way to handle exceptions that may occur in processing within Pega? for e.g. as a part of the headless processing , Pega needs to call a couple of 3rd party systems for data, in case the communication fails (connection problems/ validation errors/ system errors etc) the process flow / processing within pega needs to be smart enough to identify the error and communicate back to the calling system and also have provisioning to continue from the last completed step when the request is tried again by the calling application.
Is there a way to do this other than creating a work item in Pega which proceeds through the flow and on exception calls the FlowProblems/ ConnectionProblem flow?
***Updated by moderator: Lochan to add Categories***