Hi guys, I'm having a problem getting the ProcessInstance Datafields from the WorkItem (I'm using the Workflow.Client dll)
I have a process with a number of Process DataFields... and I need to access those values from the client...
Code:
SourceCode.Workflow.Client.
Worklist wslist;wslist = oConnWI.OpenWorklist();
foreach (WorklistItem wsi in wslist)
{
string Type = wsi.ProcessInstance.DataFields["Type"].Value; //ERROR IS THROWN, STATING THE DATAFIELDS COLLECTION IS EMPTY, WHICH IS FALSE...
... etc
}
This tells me that there are no DataFields...but they are. as I tested with the OpenProcess (but, as an administrator)..
What could be happening? I really need your advice here. Should I change anything in the definition of the Process Fields?
Kind regards, and thanks in advance...