Close popover
Tanya Filstein (TanyaKFil)
The Hartford Financial Services Group Inc
Tech Lead
The Hartford Financial Services Group Inc
TanyaKFil Member since 2018 6 posts
The Hartford Financial Services Group Inc
Posted: August 10, 2020
Last activity: August 11, 2020

Cancelling Waiting for a Signal

In my automation, I have to “pause” to allow user to manually navigate to another screen. After that I continue with the automation. To implement this, I throw a signal that indicates that the expected screen is created and I wait for this signal for 2 minutes. As soon as the signal is thrown we continue with the automation. Otherwise, we generate an error.

Wait For Signal Image

But in certain scenarios the user might want to click on another button. In this case I do not want to wait for this signal any longer and obviously I do not want to generate an error.

How do I cancel the Wait for the Signal if a certain event happens? In similar situations I would use WaitAny, but it looks like WaitAny cannot be used here.

I also tried to Cancel the Activity (though it is not the preferable way to handle this scenario), but even that did not stop the Wait...    Please help!

Pega Robotic Desktop Automation 8.0 SP1