Skip to main content

Any ideas why the ProcSetFullName would come back blank on a ProcessInstance object?

If you connect to K2 through the K2Mng, and loop through the ProcessInstances, they seem to have all their data except which process they are (the ProcSetFullName property).
 

Hi Jonathan,


 Could you please post the code your using.  This should not be the case.


 Thanks,


 -mike


 Example... populating a listview with the data...
 




// Connect to K2Mng
SourceCode.K2Mng.K2Manager k2man = new SourceCode.K2Mng.K2Manager();
k2man.Login("SERVER",5252,"");

// get the process instances from the K2Mng
SourceCode.K2Mng.ProcessInstances process_instances = k2man.GetProcessInstances();

// loop through the process instances
foreach (SourceCode.K2Mng.ProcessInstance pi in process_instances)
{

// create a listviewitem
ListViewItem lvi = new ListViewItem();

// populate it with contents of the process instance
lvi.Text = pi.ID.ToString();
lvi.SubItems.Add(pi.Folio.ToString());
lvi.SubItems.Add( (pi.ProcSetFullName!=null) ? pi.ProcSetFullName : "" );

// add the listviewitem to the listview
myListView.Items.Add(lvi);

}

 


The ProcSetFullName property comes back blank every time (the inline checking is done to stop exceptions on it).


If you have a look in the K2 DB in the _ProcSet table do you see that that FullName actually does contain text?


-mike


Yep - FullName is populated in the database.

It's just the API results that it's missing from.
 


Reply