Is there an alternative for Terminate Workflow activity?

I want to create a looping robot that can be stopped in the middle of the execution by using a single hotkey (in this case, I use Esc). Is there a way I can make it without involving Terminate Workflow activity, because it caused an exception. I want the robot to be just done without any error in the Output panel when the hotkey is triggered.

Additional info: I used Trigger Scope, Local Trigger, and Parallel activity in my workflow.

Sequence:
- Assign StopLoop = False
- Parallel
- Looping Branch
- While condition: StopLoop = False
- Your looping logic here
- Hotkey Monitoring Branch
- Check for the hotkey press (e.g., Esc)
- When hotkey is pressed, set StopLoop = True

I’ve tried, but the looping doesn’t end after I hit Esc.

My problem is solved. I just discovered the keyboard shortcut feature on UiPath Assistant, so I no longer need Terminate Workflow activity.

image

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.