SetTaskRead() public method

设置任务为已读状态(根据任务ID获取任务)
public SetTaskRead ( Slickflow.Engine.Common.WfAppRunner taskRunner ) : bool
taskRunner Slickflow.Engine.Common.WfAppRunner
return bool
Esempio n. 1
0
        public void SetTaskRead2000()
        {
            WfAppRunner taskRunner = new WfAppRunner();
            taskRunner.TaskID = 18014;
            taskRunner.UserID = 10;
            taskRunner.UserName = "******";

            IWorkflowService serviceA;
            for (var i = 0; i < 2000; i++)
            {
                serviceA = new WorkflowService();
                serviceA.SetTaskRead(taskRunner);
            }
        }
Esempio n. 2
0
        public ResponseResult ReadTask(WfAppRunner runner)
        {
            IWorkflowService wfService = new WorkflowService();
            bool isRead = wfService.SetTaskRead(runner);

            return ResponseResult.Success();
        }