


| 应用类型 | 是否支持 | 权限 | API Explorer调试 |
|---|---|---|---|
| 企业内部应用 | 支持 | 工作流实例写权限 | API Explorer |
| 第三方企业应用 | 暂不支持 | 暂不支持 | 暂不支持 |
| 第三方个人应用 | 暂不支持 | 暂不支持 | 暂不支持 |
| HttpCode | 错误码 | 错误信息 | 说明 |
|---|---|---|---|
| 400 | invalidParameter | 同意或拒绝审批任务参数错误 | 同意或拒绝审批任务参数错误 |
| 400 | needAuth | 没有同意拒绝审批的权限 | 没有同意拒绝审批的权限 |
| 400 | invalidAgentId | 无效的微应用ID | 无效的微应用ID |
| 400 | aflowProcessNotExist | 审批流不存在 | 审批流不存在 |
| 400 | invalidInstanceId | 审批实例ID不能为空 | 审批实例ID不能为空 |
| 400 | invalidInstanceExecuteActionerUserId | 同意拒绝审批任务,操作人的userId不能为空 | 同意拒绝审批任务,操作人的userId不能为空 |
| 400 | invalidInstanceExecuteTaskId | 同意拒绝审批任务,任务节点id不能为空 | 同意拒绝审批任务,任务节点id不能为空 |
| 400 | invalidInstanceExecuteResult | 同意拒绝审批任务,审批操作取值必填 且值必须为agree/refuse | 同意拒绝审批任务,审批操作取值必填 且值必须为agree/refuse |
| 400 | aflowProcessFormDataIsNull | 流程表单数据为空 | 流程表单数据为空 |
| 400 | aflowProcessInstStatusException | 审批单状态异常 | 审批单状态异常 |
| 400 | aflowProcessInstCanNotBeExecuted | 审批状态异常,无法执行 | 审批状态异常,无法执行 |
| 400 | internalError | %s | 系统内部异常 |
| 400 | userNotExist | 用户不存在 | 用户不存在 |
| 500 | systemError | 系统异常 | 系统异常 |
{
"processInstanceId" : "String",
"remark" : "String",
"result" : "String",
"actionerUserId" : "String",
"taskId" : Long,
"file" : {
"photos" : [ "String" ],
"attachments" : [ {
"spaceId" : "String",
"fileSize" : "String",
"fileId" : "String",
"fileName" : "String",
"fileType" : "String"
} ]
}
}curl --location --request POST '/v1.0/workflow/processInstances/execute' \
--header 'Content-Type: application/json' \
--data-raw '{
"processInstanceId" : "String",
"remark" : "String",
"result" : "String",
"actionerUserId" : "String",
"taskId" : Long,
"file" : {
"photos" : [ "String" ],
"attachments" : [ {
"spaceId" : "String",
"fileSize" : "String",
"fileId" : "String",
"fileName" : "String",
"fileType" : "String"
} ]
}
}'{
"result": true,
"success": true
}