Connect-Wait method |
Use the Connect-Wait method to join the current requestor session with a parallel connector requestor session created previously. Any of the four RDB- methods or eight Connect- methods can operate in parallel.
This method accepts one parameter, a timeout interval in seconds.
Parameter |
Description |
WaitSeconds |
Enter a positive number of seconds as a timeout interval, or enter -1 to cause an indefinite wait. |
If the WaitSeconds parameter is -1, the current requestor pauses indefinitely until the parallel child connectors created by one or more earlier methods completes.
If the WaitSeconds parameter contains a positive integer, PRPC pauses execution of the current activity for at least that number of seconds.
When awakened, if the method status is Good
, the activity can examine the results pages of the connector methods. If the method status is Fail
, this may indicate that one or more of the parallel child requestors has not completed.
The Connect-Wait method sets the method status to Good
or Fail
even if you simulate the connector rule through a Connector Simulation data instance.
This method updates the pxMethodStatus property. See How to test method results using a transition.