Ejemplo n.º 1
0
        /// <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);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 获取已经完成的节点
        /// </summary>
        /// <param name="taskID">任务ID</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);
        }