private void AutoExecuteFlow() { IList <string> workFlowInfo = RequestData.GetList <string>("WorkFlowInfo"); string instanceId = string.Empty; foreach (string str in workFlowInfo) { string[] strarray = str.Split(new string[] { "#" }, StringSplitOptions.RemoveEmptyEntries); instanceId = strarray[0]; string[] userarray = null; if (!string.IsNullOrEmpty(strarray[1])) { userarray = strarray[1].Split(new string[] { "$" }, StringSplitOptions.RemoveEmptyEntries); } IList <Task> tasks = Task.FindAllByProperty(Task.Prop_WorkflowInstanceID, instanceId); WorkFlow.AutoExecute(tasks[0], "任务审批人", userarray); } }