//Get all WFManualWorkItem assigned to user
IWFWorkflowService svc = GetWorkflowService();
string userID = …// for example, @"Demo3\Administrator";
string filterByStatus= string.format("{0};{1}",
WFManualWorkItem.ASSIGNED, WFManualWorkItem.OVERDUE);
try
{
WFManualWorkItem[] workItems = svc.GetWorkListByUserID(userID,
filterByStatus);
foreach (WFManualWorkItem workItem in workItems)
{
Console.WriteLine("{0}", workItem.ApplName);
Console.WriteLine("{0}", workItem.AssignedDate);
Console.WriteLine("{0}", workItem.DefName);
Console.WriteLine("{0}", workItem.DueDate);
}
}
catch(Exception ex)
{
Console.WriteLine("Failed! " + ShUtil.GetSoapMessage(ex));
}