How to stop process in the middle of flow

Hi all,

I have trouble with my flow. I have several sequences in my flow. but in the first sequence, I have a condition where if a certain element exists, then at that moment the flow will stop and not continue to the next sequence. I want to ask, what activities can make the flow stop in the first sequence. Thank you for those who want to help.

Hi @wsinten

You can give a toggle breakpoint at the activity or particular sequence where you want the process to stop.

Hope it helps!!
Regards,

Hi @wsinten

Use Terminate Workflow Activity

image

I hope it helps!!

1 Like

@wsinten

Use Break activity

@wsinten
-There is Terminate Workflow Activity
-Also u can use Throw activity or try catch activity
If that element does not exist then you can throw an business rule exception and catch it in the catch block and there u can stop the workflow

Hi @wsinten

  • A conditional activity. A conditional activity is an activity that can be used to check a condition and then take different actions depending on the result of the condition. For example, you could use a conditional activity to check if a certain element exists, and then stop the flow if the element does exist.
  • A branching activity. A branching activity is an activity that can be used to split the flow into two or more paths. For example, you could use a branching activity to check if a certain element exists, and then send the flow to one path if the element does exist, and to another path if the element does not exist.
  • A terminate activity. A terminate activity is an activity that can be used to terminate the flow. For example, you could use a terminate activity to stop the flow if a certain element exists.

Hi @wsinten

You can use stop job activity. To know about more, refer this:
https://docs.uipath.com/robot/standalone/2023.4/user-guide/stopping-a-process

@wsinten
Try this one

  • Use trigger scope
    • Click trigger
    • Inside action keep terminate workflow to stop the process or else throw activity to stop the workflow

Hope this Helps

also u can refer the below video for terminate workflow

@wsinten
Try this ,
The “Kill Process” activity in UiPath is used to forcefully terminate a running process on the local machine. It allows you to stop a specific application or process that is running in the background.

image

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