Take an If condition to check the filter condition, if conditions met then insert the activities in then block to move forward with the process, in else block don’t keep any activities.
If the condition doesn’t then the bot will go to Else block and there is no activities right, then the process will stop automatically.
You can use Throw activity. It will throw the exception. (if you are using RE Framework) Connect business exception link to end process & will end the process.
Or simply you can use if condition. If condition match then whole process in Then process. Keep else block blank.
I am sooooo sorry, I just find out even though I put nothing in [Else], the whole process will keep moving to the next step but not end the whole process
I try put [Kill Process] in [Else] but it just kill outlook but keep moving to next step(SAP relative operation)
PS: The reason it work previoulsy is that I only test this part of process but not the the process as a whole
But it seems my condition is not good for a loop. My scenario is to check if the email volume I need is bigger than zero, if yes, then move on. If no, then stop the whole process
if you are using terminate wf a pop up will come and you will have to manually close it right. That means a human intervention is required here. So it is not recommended to use this