IWFWorkflowService svc = GetWorkflowService();
WFAny any = WFAny.Create(WFManualWorkItem.ASSIGNED);
WFQueryExpr expr = new WFQueryExpr("WF_MANUAL_WORKITEM.STATUS",
SQLExpr.EQ, any, true);
try
{
WFManualWorkItem[] workItems = svc.QueryWorkList(expr);
// Iterating through the list of the ManualWorkItem
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));
}