描述
获取工作流审批历史。
请求
URL
https://api.dadayun.cn/v1/workflow/templates/:id/instances/:instanceId/wfrunresults
HTTP请求方式
GET
HTTP请求参数
名称 | 是否必需 | 类型 | 描述 |
---|---|---|---|
id | 是 | String | 工作流模板Id |
instanceId | 是 | String | 工作流实例Id |
响应
- 返回参数
返回获取工作流审批历史,数据项参数说明:
名称 | 类型 | 描述 |
---|---|---|
Id | String | 实例Id。 |
WFInstanceId | String | 是否工作流数据。 |
NodeId | String | 节点ID。 |
ActionorPositionId | String | 实际执行者岗位Id。 |
Actionor | String | 实际执行者。 |
ActionTime | String | 时间。 |
ActionResult | String | 结果。 |
ActionMemo | Integer | 意见。 |
ComefromNode | String | 来自的节点。 |
Status | String | 状态。 |
NodeName | String | 节点名称。 |
ActorName | String | 实际执行者名字。 |
示例
请求示例
HTTP/1.1
GET /v1/workflow/templates/8ac78f4c-a7eb-4d0c-ab8e-19930fa4ec6f/instances/faa3aaf4-6fb9-3ffd-dc7b-a051dbcffb58/wfrunresults
Host: api.dadayun.cn
Date: Thu, 30 Aug 2018 02:55:22 GMT
正常返回示例
HTTP/1.1 200 OK
Date: Thu, 30 Aug 2018 02:55:22 GMT
Content-Type: application/json; charset=utf-8
[
{
"Id": "8e85b852-fc9f-4f87-9e47-f8fdbe014eb9",
"WFInstanceId": "faa3aaf4-6fb9-3ffd-dc7b-a051dbcffb58",
"NodeId": "678d1390-aede-4d66-b48c-299fdeffac48",
"ActionorPositionId": "56d16567-2b0f-48a3-ba17-bbd902df1ad8",
"Actionor": "0647154d-c87c-4b91-9553-7e7025e24545",
"ActionTime": "2018-04-10T11:14:00.593Z",
"ActionResult": 1,
"ActionMemo": "同意",
"ComefromNode": "678d1390-aede-4d66-b48c-299fdeffac48",
"Status": 1,
"NodeName": "销售经理审批",
"ActorName": "总经理办公室-总经理-业务管理员"
}
]
异常返回示例
HTTP/1.1 500 Internal Server Error
Date: Thu, 30 Aug 2018 02:55:22 GMT
Content-Type: application/json; charset=utf-8
{
"Code": "InternalError",
"Message": "未知错误"
}