CreateProcess() public méthode

创建流程定义记录
public CreateProcess ( ProcessEntity entity ) : void
entity Slickflow.Engine.Business.Entity.ProcessEntity
Résultat void
Exemple #1
0
        public ResponseResult CreateProcess(ProcessEntity entity)
        {
            var result = ResponseResult.Default();
            try
            {
                var wfService = new WorkflowService();
                wfService.CreateProcess(entity);

                result = ResponseResult.Success();
            }
            catch (System.Exception ex)
            {
                result = ResponseResult.Error(string.Format("创建流程记录失败,错误:{0}", ex.Message));
            }
            return result;
        }