ProcID and Getting all the Activities


Badge +3

Hi Guys,


 


I am trying to load a list of all the activites on a list/dropdown.


Is there a way of getting the procID.


 


Thank you.


3 replies

Badge +6

well, in the workflow context browser, you can drag the ID field under Process Instance node. If you know the task serial numer, the procinst id is the first part before the underscore. eg: 432_12 - in this case, 432 is the procinstid

Badge +3

Ok cool Thanks Sujeeth,


 


But now, how do I use that to get all activities for that process, using K2 objects ofcourse.


Do you perhaps have any sample code that you can show me?


 


Thanks man.

Badge +6

something like this:


foreach (Activity a in theEvent.Activity.Process.Activities)


{


    cmbActivity.Items.Add(a.Name);


}

Reply