From time to time we get k2 developers that do something unexpected and put our k2 processes into an endless loop. I'm looking for ways to stop these process WITHOUT killing the K2HostServer services.
My current way is to stop the K2ServiceHost, find the _procinst record, update the status to 0 (error) and restart the K2ServiceHost. While this is effective, it's not a very good long term solution.
I've to use the Workspace and K2 Server API to do a StopProcessInstance but both just hang.
Any Ideas?