5. 審批完成後回撥
阿新 • • 發佈:2020-07-31
註冊事件型別
我只關注審批完成,所以這裡是審批完成,bpms_instance_change
審批例項結束|終止
{ "EventType": "bpms_instance_change", "processInstanceId": "ad253df6-e175caf-xxxxxxxxxxxx", "finishTime": 1495592305000, "corpId": "corpidxxxxxxxxxxxxx", "title": "自測-1016", "type": "finish", "url": "https://aflow.dingtalk.com/dingtalk/mobile/homepage.htm?corpid=ding2c015874d8175651&dd_share=", "result": "refuse", "createTime": 1495592272000, "staffId": "manager75", "processCode":"xxx" }
引數說明:
引數 | 說明 |
---|---|
EventType | 事件型別 |
processInstanceId | 審批例項id |
corpId | 審批例項對應的企業 |
createTime | 例項建立時間 |
finishTime | 審批結束時間 |
title | 例項標題 |
type | 審批正常結束(同意或拒絕)的type為finish,審批終止的type為terminate |
staffId | 發起審批例項的員工 |
url | 審批例項url,可在釘釘內跳轉到審批頁面 |
result | 正常結束時result為agree,拒絕時result為refuse,審批終止時沒這個值 |
processCode | 審批模板的唯一碼 |
回撥地址
自己的回撥函式
判斷引數型別,其中type = finish and result = agree 的資料,獲取它的processInstanceId 值