审批实例数据只支持第三方企业应用获取,不支持第三方个人应用获取。
获取接口如下:
GET /v1.0/workflow/processInstances?processInstanceId=String HTTP/1.1
Host:api.dingtalk.com
x-acs-dingtalk-access-token:String
Content-Type:application/json
processInstanceId说明如下:
审批实例ID。
企业内部应用。
调用发起审批实例接口获取InstanceId参数值。
调用获取审批实例ID列表接口获取list参数值。
第三方企业应用。
调用发起审批实例接口获取InstanceId参数值。
通过推送的审批事件中获取,参考biz_type=22。
返回示例如下:
HTTP/1.1 200 OK
Content-Type:application/json
{
"result" : {
"title" : "xx提交的请假申请",
"finishTime" : "2022-08-31T11:52Z",
"originatorUserId" : "manager1",
"originatorDeptId" : "-1",
"originatorDeptName" : "测试",
"status" : "NEW",
"approverUserIds" : [ "manager1" ],
"ccUserIds" : [ "manager1" ],
"result" : "agree",
"businessId" : "111",
"operationRecords" : [ {
"userId" : "manager1",
"date" : "2022-08-31T11:52Z",
"type" : "EXECUTE_TASK_NORMAL",
"result" : "AGREE",
"remark" : "评论",
"attachments" : [ {
"fileName" : "学历证明",
"fileSize" : "1024",
"fileId" : "111",
"fileType" : "pdf"
} ],
"ccUserIds" : [ "0417****4537" ]
} ],
"tasks" : [ {
"taskId" : 111,
"userId" : "manager1",
"status" : "NEW",
"result" : "REDIRECTED",
"createTime" : "2022-08-31T11:52Z",
"finishTime" : "2022-08-31T11:52Z",
"mobileUrl" : "https://www.xxxx.com",
"pcUrl" : "https://www.xxxx.com",
"processInstanceId" : "111",
"activityId" : "111"
} ],
"bizAction" : "MODIFY",
"bizData" : "{\"mykey\": \"myData\"}",
"attachedProcessInstanceIds" : [ "instance1" ],
"mainProcessInstanceId" : "111",
"formComponentValues" : [ {
"id" : "DDHolidayField-J2Bxxxx",
"name" : "组件1",
"value" : "示例值",
"extValue" : "示例值",
"componentType" : "DDSelectField",
"bizAlias" : "TextField-bizAlias"
} ],
"createTime" : "2022-08-31T11:52Z"
},
"success" : "true"
}
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。