Sample solution: Cancel event
This solution shows how to cancel an event based on conditional logic by using Pega® Robotic Automation Studio versions 7.1 and 8.0.
- Web application: WebBing - Start page = www.bing.com, Internet Explorer version 8 was used.
- Automation: StartSearch
- This automation is triggered when you click 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.
button on the Bing page. If the text in the
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 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:
Published July 14, 2017 — Updated October 30, 2017