GET / processes / {processId} / tasks
基本信息
获取指定流程processId的任务列表。
如果已启动身份验证的用户或已参与任何流程任务的用户,则该用户将有权访问流程任务。 在网络中,仅返回给定网络内的进程的任务。
在非网络部署中,管理员可以查看所有任务并对这些任务执行所有操作。 在网络部署中,网络管理员可以查看其网络中的所有任务,并对其网络中的任务执行所有操作。
请求方式 GET
请求API / processes / {processId} / 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.233Z", "startedAt": "2021-01-15T07:50:19.233Z", "endedAt": "2021-01-15T07:50:19.233Z", "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进行排序。 |
Path参数
名称 | 类型 | 是否必填 | 示例值 | 描述 |
processId | string | 是 | 流程的标识符。 |
错误信息描述
状态码 | 原因 |
400 | 参数无效:maxItems,orderBy或skipCount的值无效 |
401 | 验证失败 |
404 | processId不存在 |
default | 意外错误 |
返回结果示例
{ "error": { "errorKey": "string", "statusCode": 0, "briefSummary": "string", "stackTrace": "string", "descriptionURL": "string", "logId": "string" } }