GetNextActivityTree() private méthode

获取下一步活动节点树,供流转界面使用
private GetNextActivityTree ( int processInstanceID, string currentActivityGUID, string>.IDictionary condition, IUserRoleService roleService ) : IList
processInstanceID int
currentActivityGUID string
condition string>.IDictionary
roleService IUserRoleService
Résultat IList
        /// <summary>
        /// 根据应用获取流程下一步节点列表
        /// </summary>
        /// <param name="runner">应用执行人</param>
        /// <param name="condition">条件</param>
        /// <returns></returns>
        public IList<NodeView> GetNextActivityTree(WfAppRunner runner, 
            IDictionary<string, string> condition = null,
            IUserRoleService roleService = null)
        {
            var tm = new TaskManager();
            var taskView = tm.GetTaskOfMine(runner.AppInstanceID, runner.ProcessGUID, runner.UserID);
            var processModel = new ProcessModel(taskView.ProcessGUID, taskView.Version);
            var nextSteps = processModel.GetNextActivityTree(taskView.ProcessInstanceID,
                taskView.ActivityGUID,
                condition,
                roleService);

            return nextSteps;
        }
        /// <summary>
        /// 获取下一步活动列表树
        /// </summary>
        /// <param name="taskID"></param>
        /// <returns></returns>
        public IList<NodeView> GetNextActivityTree(int taskID, 
            IDictionary<string, string> condition = null,
            IUserRoleService roleService = null)
        {
            var taskView = (new TaskManager()).GetTaskView(taskID);
            var processModel = new ProcessModel(taskView.ProcessGUID, taskView.Version);
            var nextSteps = processModel.GetNextActivityTree(taskView.ProcessInstanceID,
                taskView.ActivityGUID,
                condition,
                roleService);

            return nextSteps;
        }
 /// <summary>
 /// 获取当前节点的下一个节点信息[mamingbo 2014/11/25 16:47:00]
 /// </summary>
 /// <param name="processGUID"></param>
 /// <param name="activityGUID"></param>
 /// <param name="condition"></param>
 /// <returns></returns>
 public IList<NodeView> GetNextActivity(String processGUID,
     String version,
     String activityGUID,
     IDictionary<string, string> condition)
 {
     var processModel = new ProcessModel(processGUID, version);
     var nextSteps = processModel.GetNextActivityTree(activityGUID, condition);
     return nextSteps;
 }