Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Sample Robotic Automation solution: Cancel event

Updated on September 10, 2021

This solution shows how to cancel an event based on conditional logic by using Pega Robot Studio.

Project items

  • Web application: WebBing - Start page = www.bing.com, Internet Explorer version 8 was used.
  • Automation: StartSearch

Automation details

StartSearch

This automation is triggered when you click the Search button on the Bing page. If the text in the Search text box (q1) matches the text box entry (Fritz), then the Clicking event is cancelled. Otherwise, the Clicking event is completed and the search begins.

Cancelling the Clicking event

You can cancel events such as the Clicking event by using automation logic. To expose the Cancel parameter, add the Clicking event to the automation and then click the up arrows at the top right of the Design block, as displayed in the following image:

The location of where to expose the Cancel parameter

The Cancel parameter accepts Boolean input. In the sample solution, the condition is set based on the Search text matching “Fritz”. If the string matches, a Boolean variable set to True and is sent to the Cancel parameter. This cancels the Clicking event.

You can download completed solutions for each version in the following table:

Studio versionBuilt by using this buildSample solution download
8.08.0.1037Cancel Event Example 8.0
8.0 SP18.0.2037Cancel Event Example 8.0 SP1
19.119.1.2.0Cancel Event Example 19.1
  • Previous topic Sample Robotic Automation solution: .NET DataGrid
  • Next topic Sample Robotic Automation solution: City State ZIP regex - Splitting an array

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

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