Back Forward Connect-Wait method

Methods and instructions by function

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.

Parameters

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.

Results

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, Process Commander 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.

Checking the method status

This method updates the pxMethodStatus property. See How to test method results using a transition.

Related topics About Connect SQL rules
Creating Connector Simulations
Connect-dotNet method

Connect-EJB method

Connect-HTTP method
Connect-Java method

Connect-JMS method
Connect-MQ method
Connect-SOAP method

RDB-Open method
RDB-Save method

RDB-Delete method

RDB-List method
How to detect long-running connectors

zzzMethods and instructions by function