Пример #1
0
        /// <summary>
        /// 流程任务处理
        /// </summary>
        /// <param name="mainId">实体唯一标识Id</param>
        /// <param name="task">任务信息</param>
        /// <param name="user">当前用户</param>
        /// <returns>返回操作结果</returns>
        public OperationResult Task(String mainId, WFTask task, User user)
        {
            String          msg = String.Empty;
            OperationResult or  = new OperationResult(OperationResultType.Error);

            if (task.IsNullOrEmpty())
            {
                msg = "任务信息无效或已过期!";
                return(new OperationResult(OperationResultType.QueryNull, msg));
            }
            // 修改任务信息
            if (WFTaskService.Update(task).Equals(0))
            {
                msg = "任务处理失败!";
                return(new OperationResult(OperationResultType.QueryNull, msg));
            }
            return(Task(mainId, task.StepId, user));
        }