Skip to main content

Signal

Suggest edit Updated on November 10, 2021

Signals can be used in all solutions to control execution flow when multiple threads occur during the course of an automation. In particular, if two execution flows are triggered by two events (events occur on different threads), the Signal component can be used to allow the two execution flows to communicate.

Properties

PropertyDescription
NameThe design name of the component in the solution. You can rename the component.

Methods

MethodDescriptionParametersReturn Type
Wait

Use this method to wait a specific interval of time, specified in milliseconds, for a signal from another thread. The Wait interval is renewed each time the method receives an event input.

True is returned if a signal is received before the Wait period elapses. False is returned when the Wait period has lapsed and a signal was not received.

Int (milliseconds) Boolean
SignalAllWhen a thread calls Wait, it is held in a queue by the Signal component. Use this method to send a signal event to all threads in the queue. NoneVoid
SignalOneWhen a thread calls Wait, it is held in a queue by the Signal component. Use this method to send a signal event to the first thread in the queue. NoneVoid
Did you find this content helpful? YesNo

Have a question? Get answers now.

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

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