Skip to main content
Nintex Community Menu Bar

ProcessID

  • March 13, 2008
  • 4 replies
  • 9 views

Forum|alt.badge.img+3

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

4 replies

Forum|alt.badge.img+8
  • March 13, 2008

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();


Forum|alt.badge.img+6
  • March 13, 2008

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


Forum|alt.badge.img+6
  • March 13, 2008

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


Forum|alt.badge.img+8
  • March 13, 2008

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