Retry many process instances in error at once


Badge +6

Is there any way to retry many instances of a process that are in an error state?  I have a process that uploads a document to SharePoint and the site collection hit it's quota.  Now I have resolved the problem but I would like to tell ALL instances to retry at once (or at least do a lot at once).

 

We are talking about probably 16,000 processes here, so it would be a real pain to retry them manually from the K2 Workspace.  Can a database update to change the status of the workflow cause them to retry?

 


2 replies

Userlevel 5
Badge +18

Perhaps this community project:


http://community.k2.com/t5/K2-blackpearl/Console-App-Gently-retry-errors/ba-p/875


 


Writing your personal retry application:


http://community.k2.com/t5/K2-blackpearl/Retrying-errored-process-instances-in-code/td-p/50471/page/2


http://bliblablog.net/programmatically-retry-k2-process-instances-in-error-state/

Userlevel 1
Badge +8

Hi wkucardinal

 

Visual Studio (if you have installed the k2 component) has a Process Management menu (View - Process Management) that allows you to select a process in error and retry it. You can also select the process version to retry them at, and there is an option to "retry all instances". Not sure how this will behave with 16,000 processes.

 

The other option might be to write some code using the K2 API to find the processes in error, loop through and retry them (I don't know if you can specify a different workflow version in code). 

 

 

Reply