GetRunningTasks() public method

获取运行中的任务
public GetRunningTasks ( TaskQueryEntity query ) : IList
query Slickflow.Engine.Business.Entity.TaskQueryEntity 查询实体
return IList
Esempio n. 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            TaskQueryEntity query = new TaskQueryEntity();
            query.AppInstanceID = "4612";
            query.AppName = "order";
            query.UserID = "2";

            var wfService = new WorkflowService();
            wfService.GetRunningTasks(query);
        }
 public IEnumerable<QueryResult> GetRunningTasks([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.GetRunningTasks(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();
     }
 }
Esempio n. 3
0
        public ResponseResult GetRunningTasks(TaskQueryEntity query)
        {
            IWorkflowService service = new WorkflowService();
            var result = service.GetRunningTasks(query);

            return ResponseResult.Success();
        }