예제 #1
0
        /// <summary>
        /// 获取开始节点
        /// </summary>
        /// <param name="processId"></param>
        /// <returns></returns>
        //public ActivityEntity GetStartActivity(string processId,string billUid)
        //{
        //    _processModel = new ProcessModel(_wfProcessService,processId,billUid);
        //    var startActivity = _processModel.GetStartActivity();
        //    return startActivity;
        //}


        /// <summary>
        /// 获取任务类型的节点列表
        /// </summary>
        /// <returns></returns>
        public IEnumerable <ActivityEntity> GetTaskActivityList(string processId, string billUid)
        {
            _processModel = new ProcessModel(_dataAccessor, _loggerFactory, processId, billUid);
            var activityList = _processModel.GetAllTaskActivityList();

            return(activityList);
        }
예제 #2
0
        /// <summary>
        /// 获取开始节点
        /// </summary>
        /// <param name="processId"></param>
        /// <returns></returns>
        //public ActivityEntity GetStartActivity(string processId,string billUid)
        //{
        //    _processModel = new ProcessModel(_wfProcessService,processId,billUid);
        //    var startActivity = _processModel.GetStartActivity();
        //    return startActivity;
        //}


        /// <summary>
        /// 获取任务类型的节点列表
        /// </summary>
        /// <returns></returns>
        public IEnumerable <ActivityEntity> GetTaskActivityList(string processId, string billUid)
        {
            _processModel = new ProcessModel(_serviceProvider, processId, billUid);
            var activityList = _processModel.GetAllTaskActivityList();

            return(activityList);
        }