Search For K2 Process Instance

Example of how to search for an existing K2 process instance by folio

Reference
SourceCode.Workflow.Management

Code
// Create connection to the management server WorkflowManagementServer wms = new WorkflowManagementServer("K2ServerHostName", 5555); // Open the connection wms.Open; // Search by folio of the process. You can also search by proces instance id. ProcessInstances pi = wms.GetProcessInstances("Some folio"); // Now, you can check 'pi' for null and .Count to see if anything was found.