Question

Asynchronous response from service to Connector

Hi All,

My Question is where will be the response from the service will be saved when we use a soap connector and make it work asynchronously??

My Implementation

1. Created a connector and changed the "intended for" field to queue in Processing option of service tab.
2. Created a request process rule and applied it in the "request" processor in "Processing option" of "service" tab.

3. Created an activity and applied the connect-soap step to call the connector with execution mode queue.

Now If i run the activity the connector rule is being called and a queue item is getting created in "System-Queue-ExecutionRequest-Connect-Default" class.

After sometime the agent "Process connect queue" is running and it is calling the service as expected.

After the call the queue item has been flagged as success.

Here my question is .. Where I can find the response returned from the service?
The activity which i called the connect rule is already ended. Is there any place that the response is getting saved so we can fetch that data and append it to the object ??

I just verified the queue item and it does not have the response details..

Appreciate your quick response :)

***Edited by Moderator: Lochan to update platform capability tags***

Comments

Keep up to date on this post and subscribe to comments

July 12, 2019 - 7:30am

Please refer to this link: https://community.pega.com/sites/default/files/help_v72/methods/connect-soap/connect-soap.htm. You need to call Connect-Wait to get the results later.

July 15, 2019 - 5:01am
Response to KevinZheng_GCS

Hi Kevin, @KevinZheng_GCS

 

Thank you for the response
BUT... In my case my calling activity should not wait for the response.It should continue the other steps and in later point of time i need to access the response and commit to the case. 

Do we have any solution for that?? 

 

July 17, 2019 - 3:45am

Hi All, 

Any one have any update on above question? 

I have found one way to do it, Just by creating an activity which will have only the connector call and response mapping. And calling that activity with Branch call so it will work asynchronously. 

But I need to understand where the response will be saved when we use the queue configuration in Connector rule. 

Pega
November 12, 2019 - 8:06am
Response to mohamedi2127

I am trying similar thing. GetExecutionRequest activity is not having the details of execution. Is there any way to persist the results so that GetExecutionRequest  activity can retrieve it later?