From the course: Complete Guide to UiPath RPA Development

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

State machine - Demo

State machine - Demo

- [Instructor] Now that we have a better understanding of how the state machine works and what's behind the scenes of each of these states, let's go ahead and give it a run and see what that looks like in practical terms. I'll click on Design Run, and the first thing we see is did set up succeed. And of course if I choose false on this and click okay, we're simply going to drop into our cleanup state where it will tell us it's cleaning up. And when I click on, okay, the automation finishes, and down here in the output, when I turn on my timestamps, we can see we got a log message of setting up, which is this right here. Then leaving setup, which is this one right here. Because our answer to this was false. And our failure transition is going to take us to cleaning up, but it does this first. So there's our leaving setup. And then we get this log message that says, set up a catastrophe bailing out. So if I go back to process states and double click on cleaning up, notice that log…

Contents