ProcessID

  • 13 March 2008
  • 4 replies
  • 0 views

Badge +3

How can I extract the ProcessID? Is there an XMLField or DataField ?


4 replies

Badge +8

You can use K2.ProcessInstance.ID


If you want to use it in the various wizards, I encourage you to store it in a data field this way, in a server event (considering you created the ProcessID data field first):


K2.ProcessInstance.DataFields[

"ProcessID"].Value = K2.ProcessInstance.ID.ToString();

Badge +6

Hi SDMJoe,


Where do you want to extract the process id from? I would use the Management API to get to process information - have a look at SourceSode.Workflow.Management and use the workflowmanagement class to get processes.


HTH,


G

Badge +6

Hi Nic,


There is a difference between the process instance ID and the Process ID - the one you are referring to above would give you the process instance ID for that particular instance - if he is looking for the process ID (so the actual process definition or proc set) then he would have to use management API.


So I'm not sure which one is right - depends on what he's really looking for... :)


Cheers,


G

Badge +8

Yes, you're right... He might have this one in mind. Let's wait for his feedback :-)

Reply