Question
Cognizant Technology Solutions
GB
Last activity: 16 Oct 2018 12:03 EDT
Connect Wait method functionality
Can anyone explains me, how connect wait method is useful, while calling connect-soap method in execution mode as Run In Parallel ?
***Edited by Moderator Marissa to update platform capability tags****
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Infosys
AU
Connect-wait method is used along with one of the connect- methods or also when we want to join the result of parallel requestor results . When we use "run in parallel" option child requestors are created for the parallel processing of connectors . If we do not use connect-wait method the current requestor will not wait for the child requestor to be completed. This might be required when we want to merge the results of child requestors with the current requestor. When we specify the waitforseconds parameter as a positive value , it would wait for the number of seconds specified . If we specify -1 value it would wait indefinitely till all the child requestors to complete .
Pegasystems Inc.
IN
Thanks for the explanation. How the merging can be done if we are getting data from multiple services.
I do have 2 REST services running in parallel and I entered -1 in the connect-wait method. First I do got the response from REST1 service and later the second response from other service. How the merging of these two services will be done. TIA
-
Siva Naga Babu Tadi
Cognizant Technology Solutions
GB
Really useful info. Thanks Binod. But one more query, how the child requester is being initiated ? Pega internally handles this ?
Capgemini
SE
Hi
Yes Pega would initiate the child requestor. You can probably see the "ChildInvoke" ( i think this was the name) activity as the initiator for the child requestor in the profiler or logs.
CollabPartnerz
IN
HI,
Below post is similar to your post.
https://collaborate.pega.com/question/connect-wait-implementation
CollabPartnerz
IN
This method is useful to wait for the child requestors to complete in a current requestor
-
Priya Panchanathan Dion Lammers Vikas Agrawal Guangri Liang Pankaj Chopra
Coforge
US
Is Connect Wait works when i call run in parallel in First screen and use connect wait in next screen flow action PreActivity ... because i need this data only in next screen.
What i trying to ask is.. Run in parallel and connect wait should be there in context of same screen action activity and wait can be used in other screens.