Can any one suggest me why this is not returning anything, i have lot of processes with BA541CBE-C938-42D4-BA44-B7AED3DE4B7B OrderDetailID. ?
It immediately starts working if is use:
SourceCode.Workflow.Management.WorklistItems _workListItems = workflowServer.GetWorklistItems("","","","","","","")
which i don't want as i have to run loop over all the processes instances. I want to load the worklistitems which have above mentioned OrderDetailID only.
SourceCode.Workflow.Management.WorklistCriteria worklistCriteria = new SourceCode.Workflow.Management.WorklistCriteria();
worklistCriteria.AddFilterField(SourceCode.Workflow.Management.WCLogical.And, SourceCode.Workflow.Management.WCField.ProcessData, "OrderDetailID", SourceCode.Workflow.Management.WCCompare.Equal, "BA541CBE-C938-42D4-BA44-B7AED3DE4B7B");
SourceCode.Workflow.Management.WorklistItems wi = workflowServer.GetWorklistItems(worklistCriteria);