I would like to keep a KillAllProcesses sub process (very simple similar to the one used in REFramework) inside a retry (This is based on a design), but I can’t find a way to execute it or how to transform it correctly with UiPath activities. I am aware that UiPath has the “Retry Scope” activity but I cannot understand the part of its condition in the context of doing retry by killing all processes.
I would like to get recommendations or based on your experience, if you have built an action similar to this, or what would be the correct way to do it?
If you have an examples of a similar scenario would be very helpful to understand it, thank you very much.
Also, there is something about Kill Process that seems to be widely misunderstood, and should be corrected by UiPath.
It attempts to kill all the matching processes regardless of which user they’re running under - so if you do not have local administrator rights the Kill Process fails because you can’t kill a process for another user; even worse - if you do have administrator rights then it will kill the process for other users.
Imagine you have another automation running under a different user and it’s using Excel, if you “Kill Process” Excel it’ll kill it for the other automation too.
It’s much better to use Close Application than Kill Process.