I'm having trouble getting ahold of workflows. I checked this forum and saw Kim Zuters topic "Getting comments in a workflow " which had the below code
WorkItemResult result = wfSvc.listWorkItems(null);
List<WorkItem> items = result.getWorkItems();
for (WorkItem item : items) {
// Attached data
List<ApplicationData> dataList =
wfSvc.getWorkItemData(item.getProcessID(), item.getSubProcessID(), item.getID());
}
However her code does not work for me (I'm using C#, and don't seem to have access to an equivalent for "result.getWorkItems"). I also tried the following results = fWorkflowService.ListWorkItems(fWorkflowAuthentication, null);PageHandle pHandle = results.PageHandle
I also tried intiializing the pageHandle instead of using null, but that made no difference. In both cases pHandle came back with number of pages = 0. Remembering that page handles can be used to search members I tired that but couldn't find an equivalent function for Workflows. Essentially I just want to be able to retrieve a Workflow and it's data given a Workflow ID.
Would fWorkflowService.GetWorkItemData be sufficient for this? the only problem with at GetWorkItemData is that I don't know the activity code of the Workflow I want to retrieve
Any help would be greatly appreicated, thanks in advance
WorkItemResult
WorkflowService.