private string task(int incidentNo, string processNameFilter) { Ultimus.WFServer.Tasklist tl = new Ultimus.WFServer.Tasklist(); Ultimus.WFServer.TasklistFilter tf = new Ultimus.WFServer.TasklistFilter(); tf.nIncidentNo = incidentNo; tf.strProcessNameFilter = processNameFilter; tl.LoadFilteredTasks(tf); Ultimus.WFServer.Task task = null; while (true) { task = tl.GetNextTask(); if (task == null) { break; } if (task.nTaskStatus == 1) { break; } } return(task == null ? " " : task.strFormUrl); }
private string task(int incidentNo, string processNameFilter) { Ultimus.WFServer.Tasklist tl = new Ultimus.WFServer.Tasklist(); Ultimus.WFServer.TasklistFilter tf = new Ultimus.WFServer.TasklistFilter(); tf.nIncidentNo = incidentNo; tf.strProcessNameFilter = processNameFilter; tl.LoadFilteredTasks(tf); Ultimus.WFServer.Task task = null; while (true) { task = tl.GetNextTask(); if (task == null) break; if (task.nTaskStatus == 1) break; } return task == null ? " " : task.strFormUrl; }