當前位置: 首頁>>代碼示例>>C#>>正文


C# WorkflowService.GetReadyTasks方法代碼示例

本文整理匯總了C#中Slickflow.Engine.Service.WorkflowService.GetReadyTasks方法的典型用法代碼示例。如果您正苦於以下問題:C# WorkflowService.GetReadyTasks方法的具體用法?C# WorkflowService.GetReadyTasks怎麽用?C# WorkflowService.GetReadyTasks使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Slickflow.Engine.Service.WorkflowService的用法示例。


在下文中一共展示了WorkflowService.GetReadyTasks方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: FlowList

 /// <summary>
 /// 當前用戶代辦任務列表(一次加載所有數據)
 /// </summary>
 /// <returns></returns>
 public ActionResult FlowList()
 {
     IWorkflowService service = new WorkflowService();
     TaskQueryEntity en = new TaskQueryEntity
     {
         UserID = User.Identity.GetUserId()
     };
     IList<TaskViewEntity> taskViewList = service.GetReadyTasks(en);
     return View(taskViewList);
 }
開發者ID:zengcheng,項目名稱:Slickflow,代碼行數:14,代碼來源:SlickflowController.cs

示例2: GetReadyTasks

        /// <summary>
        /// 獲取當前用戶待辦任務列表
        /// </summary>
        private void GetReadyTasks()
        {
            IWorkflowService wfService = new WorkflowService();
            TaskQueryEntity en = new TaskQueryEntity
            {
                UserID = LoginUserID.ToString()
            };
            IList<TaskViewEntity> taskViewList = wfService.GetReadyTasks(en);
            if (taskViewList != null)
            {
                Repeater2.DataSource = taskViewList;
                Repeater2.DataBind();
            }

        }
開發者ID:huoxudong125,項目名稱:Slickflow,代碼行數:18,代碼來源:FlowList.aspx.cs

示例3: btnRun_Click

        /// <summary>
        /// 運行流程
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnRun_Click(object sender, EventArgs e)
        {
            WfAppRunner appRunner = new WfAppRunner();
            appRunner.ProcessGUID = process_guid;
            appRunner.AppInstanceID = application_instance_id;
            //第一步任務承擔者,登錄後要找到自己的任務
            appRunner.AppName = "officeIn";
            appRunner.UserID = "1";
            appRunner.UserName = "user1";
            IWorkflowService wfService = new WorkflowService();
            TaskQueryEntity en = new TaskQueryEntity
            {
                UserID = "1"
            };
            IList<TaskViewEntity> taskViewList = wfService.GetReadyTasks(en);
            if (taskViewList != null)
            {
                dataGridView1.DataSource = taskViewList;
            }
            ////下一步執行人
            //PerformerList list = new PerformerList();
            //Performer p = new Performer("3", "user3");
            //下一步人ID,Name 注意有角色區分
            //list.Add(p);
            //Dictionary<string, string> dictCondition = new Dictionary<string, string>();
            //dictCondition.Add("IsHavingWeight", "true");
            //dictCondition.Add("CanUseStock", "false");
            //appRunner.Conditions = dictCondition;
            //NodeView nv = wfService.GetNextActivity(appRunner);//, dictCondition
            //Dictionary<String, PerformerList> dictPerformer = new Dictionary<String, PerformerList>();
            //dictPerformer.Add(nv.ActivityGUID, list);
            //appRunner.NextActivityPerformers = dictPerformer;

            var result = wfService.RunProcessApp(appRunner);
            var msg = string.Format("流程運行結果:{0}\r\n", result.Status);
            textBox1.Text += msg;
        }
開發者ID:huoxudong125,項目名稱:Slickflow,代碼行數:42,代碼來源:FlowForm.cs

示例4: GetReadyTasks

 public IEnumerable<QueryResult> GetReadyTasks([FromODataUri]QueryEntity query)
 {
     IWorkflowService service = new WorkflowService();
     Mapper.CreateMap<TaskViewEntity, QueryResult>();
     Mapper.CreateMap<QueryEntity, TaskQueryEntity>();
     var que = Mapper.Map<TaskQueryEntity>(query);
     try
     {
         var result = service.GetReadyTasks(que);
         if (result == null)
         {
             return new List<QueryResult>().AsEnumerable();
         }
         else
         {
             var aa = Mapper.Map<IList<QueryResult>>(result);
             return aa.AsEnumerable();
         }
     }
     catch
     {
         return new List<QueryResult>().AsEnumerable();
     }
 }
開發者ID:uname-yang,項目名稱:WorkFlow-Engine-OData-WebApi-with-OdataClient,代碼行數:24,代碼來源:QueryEntitiesController.cs

示例5: GetReadyTasks

        public ResponseResult GetReadyTasks(TaskQueryEntity query)
        {
            IWorkflowService service = new WorkflowService();
            var result = service.GetReadyTasks(query);

            return ResponseResult.Success();
        }
開發者ID:huoxudong125,項目名稱:Slickflow,代碼行數:7,代碼來源:Wf2GoController.cs

示例6: QueryReadyTasks

        public ResponseResult<List<TaskViewEntity>> QueryReadyTasks(TaskQueryEntity query)
        {
            var result = ResponseResult<List<TaskViewEntity>>.Default();
            try
            {
                var taskList = new List<TaskViewEntity>();
                var wfService = new WorkflowService();
                var itemList = wfService.GetReadyTasks(query);

                if (itemList != null)
                {
                    taskList = itemList.ToList();
                }
                result = ResponseResult<List<TaskViewEntity>>.Success(taskList);
            }
            catch (System.Exception ex)
            {
                result = ResponseResult<List<TaskViewEntity>>.Error(string.Format(
                    "獲取待辦任務數據失敗, 異常信息:{0}",
                    ex.Message));
            }
            return result;
        }
開發者ID:huoxudong125,項目名稱:Slickflow,代碼行數:23,代碼來源:WfController.cs

示例7: WfAppRunner

        private void btn綜合部簽字_Click(object sender, EventArgs e)
        {
            WfAppRunner appRunner = new WfAppRunner();
            appRunner.ProcessGUID = process_guid;
            appRunner.AppInstanceID = application_instance_id;
            //第一步任務承擔者,登錄後要找到自己的任務
            appRunner.AppName = "officeIn";
            appRunner.UserID = "3";
            appRunner.UserName = "user3";

            IWorkflowService wfService = new WorkflowService();
            TaskQueryEntity en = new TaskQueryEntity
            {
                UserID = "3"
            };
            IList<TaskViewEntity> taskViewList = wfService.GetReadyTasks(en);
            appRunner.TaskID = taskViewList[0].TaskID;

            PerformerList list = new PerformerList();
            list.Add(new Performer("5", "user5"));
            NodeView nv = wfService.GetNextActivity(appRunner);
            Dictionary<String, PerformerList> dictPerformer = new Dictionary<String, PerformerList>();
            dictPerformer.Add(nv.ActivityGUID, list);
            appRunner.NextActivityPerformers = dictPerformer;
            var result = wfService.RunProcessApp(appRunner);
            var msg = string.Format("流程運行結果:{0}\r\n{1}\r\n", result.Status, result.Message);
            tBoxResult.Text += msg;
        }
開發者ID:huoxudong125,項目名稱:Slickflow,代碼行數:28,代碼來源:FormOfficeInXorSplitXorJoin.cs


注:本文中的Slickflow.Engine.Service.WorkflowService.GetReadyTasks方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。