I know that you can pull datafields from active processes via the Workflow.Client, but this only works with Active processes.
...
For Each dataField In worklistItem.ProcessInstance.DataFields
If dataField.Name = "ASDF" Then
Response.write(dataField.Name.ToString + ": " & dataField.Value.ToString)
End If
Next
...
How can I get that same datafield value after that process is completed? I tried using the Workflow.Management, but I haven't figured out if this is the correct approach as it seems to only expose certain predefined items.
Dim allProcInsts As ProcessInstances = workflowserver.GetProcessInstances()
For Each proc As SourceCode.Workflow.Management.ProcessInstance In allProcInsts
If proc.ID = K2ProcID Then
Response.Write("Process ID: " + proc.ID.ToString + "<BR>")
End If
Next
Any Thoughts?