GET / tasks
基本信息
获取已认证用户可见的任务列表。
返回已认证用户是受让人或候选人的任务。 如果启用了网络,则仅返回给定网络内部的任务。
在非网络部署中,管理员可以查看所有进程并对任务执行所有操作。 在网络部署中,网络管理员可以查看其网络中的所有进程并对其网络中的任务执行所有操作。
请求方式 GET
请求API / tasks
响应等级(状态200)
成功回应
{ "list": { "pagination": { "count": 0, "hasMoreItems": true, "totalItems": 0, "skipCount": 0, "maxItems": 0 }, "entries": [ { "entry": { "id": "string", "processId": "string", "processDefinitionId": "string", "activityDefinitionId": "string", "name": "string", "description": "string", "dueAt": "2021-01-15T07:50:19.243Z", "startedAt": "2021-01-15T07:50:19.243Z", "endedAt": "2021-01-15T07:50:19.243Z", "durationInMs": 0, "priority": 0, "owner": "string", "assignee": "string", "formResourceKey": "string", "state": "unclaimed", "variables": [ { "scope": "string", "name": "string", "value": 0, "type": "string" } ] } } ] } }
响应内容类型 applicaiton/json
Query参数
名称 | 类型 | 是否必填 | 示例值 | 描述 |
skipCount | integer | 否 | 在list中跳过指定数量的数据。 | |
maxItems | integer | 否 | 在list中要返回的最大项目数。 | |
properties | Array[string] | 否 | 属性名称列表。 您可以使用properties参数来限制返回的属性数。 | |
orderBy | Array[string] | 否 | 控制list中entities退回顺序的string。您可以使用orderBy参数通过一个或多个fields对列表进行排序。每个fields都有一个默认的排序顺序,通常是升序的。阅读API方法实践说明以检查是否所有fields使用这个方法将默认搜索顺序设为降序。要按照特殊顺序对entities进行排序的话,您可以使用ASC和DESC关键字对fields进行排序。 | |
where | string | 否 | 通过使用谓词来限制返回的对象的一个字符串。 |
错误信息描述
状态码 | 原因 |
400 | 参数无效:maxItems,orderBy,where或skipCount的值无效 |
401 | 验证失败 |
default | 意外错误 |
返回结果示例
{ "error": { "errorKey": "string", "statusCode": 0, "briefSummary": "string", "stackTrace": "string", "descriptionURL": "string", "logId": "string" } }