• 5. 审批完成后回调


    注册事件类型

    我只关注审批完成,所以这里是审批完成,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 值

  • 相关阅读:
    C++防止头文件反复包括
    yppasswd, ypchfn, ypchsh
    yes
    Yacc
    xxd
    xpdf -Portable Document Format(PDF)文件阅读器
    xinetd
    xargs
    x25, PF_X25
    write -在一个文件描述符上执行写操作
  • 原文地址:https://www.cnblogs.com/maanshancss/p/13409276.html
Copyright © 2020-2023  润新知