Ejemplo n.º 1
0
    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);
    }
Ejemplo n.º 2
0
    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;
    }