Skip to main content
Nintex Community Menu Bar

K2Mng ProcessInstances - ProcSetFullName comes back blank?

  • October 18, 2007
  • 4 replies
  • 24 views

beckettj
Forum|alt.badge.img+5

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).
 

4 replies

Forum|alt.badge.img+5
  • October 19, 2007

Hi Jonathan,


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


 Thanks,


 -mike


beckettj
Forum|alt.badge.img+5
  • Author
  • October 19, 2007

 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).


Forum|alt.badge.img+5
  • October 23, 2007

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


-mike


beckettj
Forum|alt.badge.img+5
  • Author
  • October 25, 2007

Yep - FullName is populated in the database.

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