Question
How to find and save a Thread details and then kill that thread on user action
Hi, I want to find and save current running thread details into variables and then on user action like on click of a button, I want to kill that previous thread. The main reason for this is.. one of the application that we are automating is very slow and it hangs few times and it runs in the background. If the user feels that it been hanging there for a while, there should be a way to kill that previous thread and start the process again. Can anyone Please let me know how to achieve this using Pega Robotics. Thanks,
This would require C# on your part as it is not available within the product. If you are simply looking to terminate a specific adapter, then you can do that by calling Stop on the adapter. You can also use the static method Process.GetProcessesByName to locate a specific process and Kill it.