How can I extract the ProcessID? Is there an XMLField or DataField ?
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();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
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
Yes, you're right... He might have this one in mind. Let's wait for his feedback :-)
Reply
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.