Skip to main content

Hi,


We are having problem closing old active process. These are the processes which was not completed or taken action by the user. We have around 10,000 processes that needs to be close cause its affecting the process performane. Sometimes other users will experience timeout when submitting forms due to heavy volume on the Processed instance. Do you have idea on how are we going to close or terminate those active processes without deleting it from the K2 workspace one by one? Thanks.. Looking forward for an immediate response.


 

You need to 1.)identify the processes and folio numbers, and 2.) a common activity these processes can be redirected to, which are at the end of a process


You can the build a small console application, which can identify these processes and execute the goto activity; You can build the application in such a way that you can run it a a scheduled task, or if you have more time, you can build a O/S Service that can go through this routine on a timely manner;


The processes will still remain on the reports in the workspace, as you are not "deleting" them, you are simply taking them to a terminating activity.


 


If the last activity has an client event things may get messy however. 


Deleting the processes using the API as Eckard described is okay as there is a bool flag you could specify to not get rid of the logs.


My 2cents,
Frikkie!


Reply