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 .
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