How can I get the ProcessData object from a workflow item using the core service? The code below gets the LinkToProcessInstanceData but not the actual ProcessInstance.

Is there a way to convert from a LinkToProcessInstanceData to ProcessData?

LinkToProcessInstanceData procInstanceLinkData = wfItem.WorkflowInfo.ProcessInstance;

1 Answer 1


The way is called Read:

var processInstance = (ProcessInstanceData) client.Read(wfItem.WorkflowInfo.ProcessInstance.IdRef, new ReadOptions());
  • Aha! I'm too used to the old TOM.NET way of everything being an object or method off of the main object and didn't think to call .Read. I keep forgetting that we're really dealing with a pile of XML under these calls and the appearance of a real API is only that, an appearance...
    – robrtc
    Commented Jul 23, 2013 at 15:19
  • It is a real API, just a Service-on-top-of-data one instead of the typical OO stuff we're used to. Much lighter of the wire too, TOM is particularly chatty and DB heavy
    – Nuno Linhares
    Commented Jul 24, 2013 at 1:54
  • I agree that is is lighter weight and performs better in many cases. Sometimes I miss the whole OO goodness though....
    – robrtc
    Commented Jul 24, 2013 at 9:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.