How to stop a robot execution?

I want to stop a robot in the middle of execution without use exception.

Only stop, like this

Ignoring the false condition should stop the robot.

Thanks, that works in this conditions.

But if the flowchart is inside several other i don’t know what do. Just ignoring the false condition the robot keep running.

Do you have suggestions?

Did you say you don’t want terminate workflow activity

With Flowcharts, you’re best bet is just using your condition with a Decision box and leaving nothing on one end so it stops execution, or put a sequence there that performs closing all your applications or whatever you need.

“Terminate Workflow” activity throw a exception, like a error. I want only finalize the execution. Do you know others alternatives?

2 Likes

I agree with you.
In my workaround, I insert empty Sequence instead of Stop.
Because of explicit to stop.

Hi @fabios8 I see 2 ways to do it.

1.- Create a Throw of and Exception veryXtremly2Happen then you can put a general Try/catch in the main to Catch just that type of Exception and handle it the way you want it.

2.- Other way can be using Uipath 2018 “Stop Job” activity. But this way you will need to publish your project into Orchestrator and give Edit rights to your robot if you want that “Stop Job” Activity to work.

I’m trying to find some way to Stop without publishing but it looks “Throw” is the only way :frowning: