Using the recover and resume stages to gracefully handle exceptions

Let's program the robot to record the error message by use of the recover and resume stages:

  • From Blue Prism Studio, open the Amazon - Search business object for editing. Open the Add to Cart action.
  • Drag a Recover stage and drop it somewhere near the End stage. Rename it from Recover1 to Recover.
  • Drag a Calculation stage and drop it beneath the Recover stage. Configure it as follows:
    • Name: Set Success to False
    • Expression: False
    • Store Result in: Success
    • Drag a Resume stage and drop it beneath the Set Success to False stage
    • Rename it from Resume1 to Resume
  • Finally, link up all the stages, as shown in the following diagram:

Now run the process again. This time, if there ...

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.