Skip to main content

Hello


I started to work with K2 blackpearl, and I don´t know how to get the list of process instances that are active.


My code is like this


 


 // connect to K2 Server


WorkflowManagementServer wfmServer = new WorkflowManagementServer();


wfmServer.CreateConnection();


wfmServer.Connection.Open(scBuilder.ConnectionString);


 


// optionally get a list of process instances to explore


ProcessInstances procInst = wfmServer.....


 


Can anyone help me?


Thanks in advance


Daniel

The WorkflowManagementServer will always only return active instances. All completed process instances are moved to the Log database/tables. So any process instances returned by this call will be active (not completed).


 


If your question is which method to call, have a look at the Help file:


SourceCode.Workflow.Management Namespace:
WorkflowManagementServer Class


Some obvious ones are:


GetProcessInstances


GetProcessInstancesAll


GetProcessInstancesProcSet


Reply