How to obtain all active instances cross all processes and versions through K2 2003 APIs

  • 10 October 2014
  • 1 reply
  • 0 views

Badge +3

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.


1 reply

Badge +3

:).

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