zoukankan      html  css  js  c++  java
  • 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 值

  • 相关阅读:
    SEO简介
    30个最常用css选择器解析(转自大范甘迪)
    H5新增语义化标签footer
    H5新增语义化标签article
    H5新增语义化标签aside
    H5新增语义化标签figure
    H5新增语义化标签nav
    node 文本替换
    一键生成专题
    node命令行工具—cf-cli
  • 原文地址:https://www.cnblogs.com/maanshancss/p/13409276.html
Copyright © 2011-2022 走看看