Skip to main content

WaitAll and WaitAny components

Suggest edit Updated on November 10, 2021

Use either of these components to cause an automation to wait while other objects such as screens, forms, or applications are created.

Properties

PropertyDescription
TimeoutThe period of time the Wait component allows to elapse for the input component to be created. If the components are not created within this time period the Timeout event is triggered.
HandleThe WaitHandle of the components to be created. A control's WaitHandle is a signal that is turned on when a control is created and off when the control is destroyed. The WaitHandle allows callers to wait for the component's creation signal when using the WaitAny or WaitAll components. Click the Plus (+) button on the design block to add Wait inputs for multiple components.

Events

EventsDescription
WaitHandleThis event applies to the WaitAny component. An output event is triggered when the input WaitHandle indicates the component has been created.
TimedOutThis event is triggered if none the WaitHandles gets set before the timeout interval expires.
WaitCompletedThis event is triggered if a one of the associated WaitHandles gets set.

Methods

MethodDescriptionParametersResult Type
WaitAll

Triggers an event when each member of a set of objects or components is created. If not created within the interval specified in the Timeout property, the WaitAll component triggers the Timeout event.

For example, this method could be used when all objects on a page must be created before executing the next link in an automation.

Timeout (Milliseconds)

Wait (WaitHandle)

Void
WaitAny

Triggers events when any one of a group of two or more objects are created. If none are created within the Timeout property value, the WaitAny Timeout event is triggered.

For example, a login process automation with two different login possibilities-one for local and one for remote-could trigger events based on the creation of either screen.

Timeout (Milliseconds)

Wait (WaitHandle)

Void
Did you find this content helpful? YesNo

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Ready to crush complexity?

Experience the benefits of Pega Community when you log in.

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us