
| 应用类型 | 是否支持 | 权限 | API Explorer调试 |
|---|---|---|---|
| 企业内部应用 | 支持 | 工作流实例读权限 | API Explorer |
| 第三方企业应用 | 支持 | 工作流实例读权限 | API Explorer |
| 第三方个人应用 | 暂不支持 | 暂不支持 | 暂不支持 |
| HttpCode | 错误码 | 错误信息 | 说明 |
|---|---|---|---|
| 400 | targetSelectApproverScopeError | 自选审批人不在规定范围内 | 自选审批人不在规定范围内 |
| 400 | targetSelectApproverMissing | 自选审批人缺失 | 自选审批人缺失 |
| 400 | invalidParameter | 获取单个审批实例详情参数错误 | 获取单个审批实例详情参数错误 |
| 400 | processInstanceInvalidParameter | 审批实例参数错误 | 审批实例参数错误 |
| 400 | processInstanceStartFailed | 创建审批实例失败 | 创建审批实例失败 |
| 400 | needAuth | 没有发起审批的权限 | 没有发起审批的权限 |
| 400 | invalidAgentId | 无效的微应用ID | 无效的微应用ID |
| 400 | processGroupGetFailed | 获取审批流分组失败 | 获取审批流分组失败 |
| 400 | processCodeError | 获取审批模板失败或者模板已被删除 | 获取审批模板失败或者模板已被删除 |
| 400 | processSetupNoPermission | 无操作审批流的权限 | 无操作审批流的权限 |
| 400 | processGetFailed | 获取审批流失败 | 获取审批流失败 |
| 400 | formConverterError | 表单数据校验失败,失败控件:%s | 表单数据校验失败 |
| 400 | illegalComponent | 表单组件入参错误 | 表单组件入参错误 |
| 400 | processInstanceIdError | processInstanceId参数无效 | processInstanceId参数无效 |
| 400 | internalError | %s | 系统内部异常 |
| 400 | processFormDataIsNull | 流程表单数据为空 | 流程表单数据为空 |
| 500 | systemError | 系统异常 | 系统异常 |
curl --location --request GET '/v1.0/workflow/processInstances?processInstanceId=String' \
--header 'x-acs-dingtalk-access-token;'{
"result": {
"title": "string",
"finishTime": "string",
"originatorUserId": "string",
"originatorDeptId": "string",
"originatorDeptName": "string",
"status": "string",
"approverUserIds": [
"string"
],
"ccUserIds": [
"string"
],
"result": "string",
"businessId": "string",
"operationRecords": [
{
"userId": "string",
"date": "string",
"type": "string",
"result": "string",
"remark": "string",
"attachments": [
{
"fileName": "string",
"fileSize": "string",
"fileId": "string",
"fileType": "string"
}
],
"ccUserIds": [
"string"
]
}
],
"tasks": [
{
"taskId": 0,
"userId": "string",
"status": "string",
"result": "string",
"createTime": "string",
"finishTime": "string",
"mobileUrl": "string",
"pcUrl": "string",
"processInstanceId": "string",
"activityId": "string"
}
],
"bizAction": "string",
"bizData": "string",
"attachedProcessInstanceIds": [
"string"
],
"mainProcessInstanceId": "string",
"formComponentValues": [
{
"id": "string",
"name": "string",
"value": "string",
"extValue": "string",
"componentType": "string",
"bizAlias": "string"
}
],
"createTime": "string"
},
"success": "string"
}