Using blocks to group stages that share a common error handling routine

In the preceding example, we demonstrated a simple use case of how to use the recover and resume stages. Take a look at the other parts of the Weekly purchase of groceries process. Which are the parts that tend to break and cause the process to terminate unexpectedly?

Perhaps you may have noticed that most of the exceptions happen in the Search and Add Item to Cart actions, especially within the loop that processes the items, for example, if the Amazon site failed to load, or if the search yielded zero results? The process still throws up the error message and terminates. It becomes especially frustrating, for example if you have 10 items to purchase and an error occurs ...

Get Robotic Process Automation with Blue Prism Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.