Skip to main content

Greetings,


I need to provide similar functionality as that of K2 in my application. Display all the work-items in error status and Administrator can retry to resolve it.


Any idea how this can be achieved will be really helpful.


Thanks,


Aman

In a nutshell, you should be looking at the SourceCode.Workflow.Management APIs.  Here's a sample snippet.


..


 wfServer.CreateConnection();
wfServer.Connection.Open(connectionString.ToString());
ErrorLogs els = wfServer.GetErrorLogs(wfServer.GetErrorProfile("All").ID);
foreach (ErrorLog el in els)
{
   wfServer.RetryError(el.ProcInstID, el.ID, sUserName);
}
...


Reply