private GetCompletedActivityInstanceList ( string appInstanceID, string processGUID ) : List |
||
appInstanceID | string | |
processGUID | string | |
Результат | List |
/// <summary> /// 获取已经完成的节点记录 /// </summary> /// <param name="runner"></param> /// <returns></returns> public IList<NodeImage> GetActivityInstanceCompleted(WfAppRunner runner) { IList<NodeImage> imageList = new List<NodeImage>(); var am = new ActivityInstanceManager(); var list = am.GetCompletedActivityInstanceList(runner.AppInstanceID, runner.ProcessGUID); foreach (ActivityInstanceEntity a in list) { imageList.Add(new NodeImage { ID = a.ID, ActivityName = a.ActivityName }); } return imageList; }
/// <summary> /// 获取已经完成的节点 /// </summary> /// <param name="taskID"></param> /// <returns></returns> public IList<NodeImage> GetActivityInstanceCompleted(int taskID) { IList<NodeImage> imageList = new List<NodeImage>(); var tm = new TaskManager(); var task = tm.GetTaskView(taskID); var am = new ActivityInstanceManager(); var list = am.GetCompletedActivityInstanceList(task.AppInstanceID, task.ProcessGUID); foreach (ActivityInstanceEntity a in list) { imageList.Add(new NodeImage { ID = a.ID, ActivityName = a.ActivityName }); } return imageList; }