/// <summary>
        /// 修改子流程节点配置
        /// </summary>
        /// <param name="userInfo">用户</param>
        /// <param name="entity">子流程节点配置实体</param>
        /// <returns>大于0成功</returns>
        public int UpdateSubWorkFlow(UserInfo userInfo, SubWorkFlowEntity entity)
        {
            var returnValue = -1;
            var parameter   = ParameterUtil.CreateWithMessage(userInfo, MethodBase.GetCurrentMethod(), this.serviceName, RDIFrameworkMessage.WorkFlowUserControlService_UpdateSubWorkFlow);

            ServiceUtil.ProcessWorkFlowDbWithTransaction(userInfo, parameter, dbProvider =>
            {
                var manager = new SubWorkFlowManager(dbProvider, userInfo);
                returnValue = manager.UpdateSubWorkFlow(entity);
            });
            return(returnValue);
        }
        /// <summary>
        /// 修改一个子流程设置
        /// </summary>
        /// <param name="entity">子流程节点配置实体</param>
        public int UpdateSubWorkFlow(SubWorkFlowEntity entity)
        {
            int returnInt = -1;

            if (entity.SubId.Trim().Length == 0 || entity.SubId == null)
            {
                throw new Exception("UpdateWorkFlow方法错误,SubId 不能为空!");
            }

            try
            {
                returnInt = this.UpdateEntity(entity);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(returnInt);
        }
        /// <summary>
        /// 新建一个子流程模板
        /// </summary>
        /// <param name="entity">子流程节点配置实体</param>
        public string InsertSubWorkFlow(SubWorkFlowEntity entity)
        {
            string returnStr = string.Empty;

            if (entity.SubId.Trim().Length == 0 || entity.SubId == null)
            {
                throw new Exception("InsertSubWorkFlow方法错误,SubId 不能为空!");
            }

            try
            {
                returnStr = this.AddEntity(entity);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(returnStr);
        }