Skip to main content

Hi, 

 

I work on K2 data migration from 2003 to blackpearl which needs to get all active instances of all processes regardless of versions running on K2 Server through K2 API (K2Mng or K2ROM). Anybody knows how to get it ? Any help doc I can find from help center or portal.k2.com? 

Appreciation in advance.

:).

Still answer by myself. 

K2ROM should get you all active instances crossing all process versions. However you need to filter down because an instance with difference destination will be considered as a worklistitem in the result below. 

 

Snippet

K2Manager k2Manager = new K2Manager();
k2Manager.Login(Config.K22003Server, 5252, Config.K22003ServerConnectionString);
WorkListItems workListItems = k2Manager.GetWorkListItems(null, processName);
k2Manager.Logout();

Reply