Skip to content

监听器

概述

在织信低代码平台中,监听器是一种强大的工具,它可以通过监听系统的特定事件来触发和执行预先设置的自动化程序。这使得开发者能够创建响应迅速且智能的应用程序。 监听器通过捕捉系统中的特定事件(如数据变更、用户操作等),并根据预定义的规则和条件,自动执行相应的自动化程序。自动化程序可以包括数据处理、通知发送、外部系统集成等操作。

自动化程序或者脚本中可以通过发布应用事件步骤发布一个应用事件应用事件的类型需要预先设置。

应用事件触发模型

重要提示

需要注意非客户端运行的监听器必须是不包含交互式步骤的

自动化或者脚本会接受一个参数,类型为AppEvent,结构如下

ts
interface AppEvent {
    id: string;//事件ID
    content: object;//事件内容
}

事务

所有的事件监听器(发送通知、客户端触发的除外)的执行都会和触发点在同一事务中执行。例如我们监听数据表记录创建前事件的自动化程序里执行时抛出异常,那么包括插入记录在内的所有事务都会回滚。

例如在提交数据是需要做一些规则校验,如果规则不满足则不允许用户提交数据。在数据表记录创建后的事件监听器中设置好规则检查自动化程序。如果不满足规则自动化程序执行终止执行,系统在接受到终止执行命令后就会自动的将所有事务回滚,提交数据的工作也就失败了。

数据表记录创建前、后事件

在用户通过表单创建记录后触发

在创建记录时事件触发的顺序为

  • 触发主表的数据表记录创建前事件
  • 对每一条子表的记录触发数据表记录创建前 数据表记录创建后事件
  • 触发主表的数据表记录创建后事件。
json
{
    "content":{
        "record":{
            "name":"名称","age":0
        },
        "source":"form",
        "tableId":"listenerData"
    },
    "id":"record.create.before"
}
json
{
   "content": {
      "afterRecord": {
         "age": 0,
         "id": "d6dhvhodo62nl",
         "name": "名称",
         "seq": 2
      },
      "record": {
         "age": 0,
         "name": "名称"
      },
      "source": "form",
      "tableId": "listenerData"
   },
   "id": "record.create.after"
}

数据表记录更新前、后事件

在用户通过表单更新记录后触发

在更新记录时 子表可能包含了 创建 更新 删除三种动作,事件触发的顺序为

  • 触发主表的数据表记录更新前事件
  • 对于子表中新增的数据依次触发数据表记录创建前 数据表记录创建后事件
  • 对于子表中更新的数据依次触发数据表记录更新前 数据表记录更新后事件
  • 对于子表中删除的数据依次触发数据表记录删除前 数据表记录删除后事件
  • 触发主表的数据表记录后前事件
json
{
   "content": {
      "beforeRecord": {
         "age": 100,
         "id": "xg2d0hi83cwym",
         "name": "张三",
         "seq": 1
      },
      "record": {
         "id": "xg2d0hi83cwym",
         "name": "张三1"
      },
      "source": "form",
      "tableId": "listenerData",
      "updateFieldList": [
         "name"
      ]
   },
   "id": "record.update.before"
}
json
{
   "content": {
      "afterRecord": {
         "age": 100,
         "id": "xg2d0hi83cwym",
         "name": "张三1",
         "seq": 1
      },
      "beforeRecord": {
         "age": 100,
         "id": "xg2d0hi83cwym",
         "name": "张三",
         "seq": 1
      },
      "record": {
         "id": "xg2d0hi83cwym",
         "name": "张三1"
      },
      "source": "form",
      "tableId": "listenerData",
      "updateFieldList": [
         "name"
      ],
      "updateRowCount": 1
   },
   "id": "record.update.after"
}

数据表记录删除前、后事件

在用户通过表单删除记录后触发

在删除记录时 事件的触发顺序为

  • 触发主表的数据表记录删除前事件
  • 触发主表的数据表记录删除后事件。

TIP

对于关联列表类型的字段,删除行为只会删除关联关系,并不会实际删除数据,所以不会触发子表的相关事件

json
{
   "content": {
      "record": {
         "age": 0,
         "id": "d6dhvhodo62nl",
         "name": "点点滴滴",
         "seq": 2
      },
      "source": "form",
      "tableId": "listenerData"
   },
   "id": "record.delete.before"
}
json
{
   "content": {
      "record": {
         "age": 0,
         "id": "d6dhvhodo62nl",
         "name": "点点滴滴",
         "seq": 2
      },
      "source": "form",
      "tableId": "listenerData"
   },
   "id": "record.delete.after"
}

数据表记录更新排序

在表格视图中用户通过拖拽修改记录顺序后触发

json
{
   "content": {
      "beforeRowNumber": 4,
      "recordId": "gf13shmq3njqf",
      "source": "form",
      "tableId": "listenerData"
   },
   "id": "record.rownumber.update.before"
}
json
{
   "content": {
      "afterRowNumber": 3,
      "beforeRowNumber": 4,
      "recordId": "gf13shmq3njqf",
      "source": "form",
      "tableId": "listenerData"
   },
   "id": "record.rownumber.update.after"
}

数据表记录评论创建后

在用户通过表单发表评论后触发

json
{
   "content": {
      "comment": {
         "content": "{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"content\":[{\"text\":\"请参考1.3 \",\"type\":\"text\"},{\"type\":\"mention\",\"content\":[{\"text\":\"@王延峰 \",\"type\":\"text\"}],\"attrs\":{\"id\":\"nx8hcjsq4xk8z\",\"label\":\"王延峰 \"}},{\"text\":\" 修改一下\",\"type\":\"text\"}]}]}",
         "id": 0,
         "parentId": 0,
         "recordId": "xg2d0hi83cwym",
         "tableId": "listenerData"
      }
   },
   "id": "record.comment.create.after"
}

数据表记录评论删除后

在用户通过表单删除评论后触发

json
{
   "content": {
      "comment": {
         "content": "{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"content\":[{\"text\":\"请参考1.3 \",\"type\":\"text\"},{\"type\":\"mention\",\"content\":[{\"text\":\"@王延峰 \",\"type\":\"text\"}],\"attrs\":{\"id\":\"nx8hcjsq4xk8z\",\"label\":\"王延峰 \"}},{\"text\":\" 修改一下\",\"type\":\"text\"}]}]}",
         "id": 0,
         "parentId": 0,
         "recordId": "xg2d0hi83cwym",
         "tableId": "listenerData"
      }
   },
   "id": "record.comment.delete.after"
}

自动化执行

在织信低代码平台中,自动化执行监听器事件可以监听自动化执行的三个关键事件:执行开始执行结束执行失败。使用此监听器事件可以记录自动化执行过程,以下是几个使用场景

  • 记录执行过程作为日志,统计分析
  • 在执行前进行全局的权限检查
  • 将执行记录发送到消息队列,推送给监控系统
json
{
   "content": {
      "args": [
         "lefttop"
      ],
      "draft": false,
      "id": "trang7ixclbtg",
      "isDraft": false,
      "uuid": "trang7ixclbtg:sesgv3tgz0el"
   },
   "id": "app.automatic.before"
}
json
{
   "content": {
      "args": [
         "lefttop"
      ],
      "draft": false,
      "id": "trang7ixclbtg",
      "isDraft": false,
      "uuid": "trang7ixclbtg:sesgv3tgz0el"
   },
   "id": "app.automatic.success"
}

定时任务执行

在织信低代码平台中,定时任务执行监听器事件可以监听定时任务执行的三个关键事件:执行开始执行成功执行失败。使用此监听器事件可以记录定时任务过程,以下是几个使用场景

  • 记录执行过程作为日志,统计分析
  • 将执行记录发送到消息队列,推送给监控系统
json
{
   "content": {
      "endTime": 1718092915132,
      "id": "tlijinwmbtnet",
      "name": "每天上午10点,下午2点,4点创建一条记录",
      "requestId": "arqwu3bsirbh8",
      "serverId": "informat-biz2-prd",
      "startTime": 1718157714369
   },
   "id": "app.schedule.before"
}
json
{
   "content": {
      "endTime": 1718092915132,
      "id": "tlijinwmbtnet",
      "name": "每天上午10点,下午2点,4点创建一条记录",
      "requestId": "arqwu3bsirbh8",
      "serverId": "informat-biz2-prd",
      "startTime": 1718157714369
   },
   "id": "app.schedule.success"
}

进入应用

进入应用监听器事件会在用户从客户端进入应用后触发。使用此监听器可以实现以下应用场景。

  • 使用 显示对话框 自动化步骤,在客户端显示一个欢迎对话框,向用户展示欢迎信息或应用的使用指南
  • 使用 设置角标 自动化步骤,设置应用在工作台界面显示的角标,例如未读消息数量或待处理任务数量。
  • 将用户的登录时间记录到日志表中,以备后续分析或审计

TIP

此监听器事件是在客户端触发,调用的自动化可以包含交互式逻辑

json
{
   "eventContent": {
      "app": {
         "appData": {},
         "appDefineBuild": 1905,
         "appDefineEditable": true,
         "appDefineId": "demoApp",
         "appDefineVersion": "1.5",
         "badge": "重要",
         "color": "#9470DC",
         "companyId": "icxt9rsd1f0ai",
         "createAccountAvatar": "pic8.png",
         "createAccountId": "ek5veueb6c9zg",
         "createAccountName": "曾烨森",
         "createTime": 1700628728441,
         "dbIndex": 0,
         "designerAccountList": [
         ],
         "designerEditAccountList": [
         ],
         "designerPublishAccountList": [
         ],
         "enableAppJsonLog": false,
         "enableAppLog": false,
         "enableSaveProcessLog": false,
         "env": "dev",
         "envPropertyList": [
            {
               "id": "payID",
               "value": "覆盖的值"
            }
         ],
         "groupId": "qvwfhdf328lex",
         "hint": "gongnengyanshi-v1.5",
         "icon": "noto-glowing-star",
         "id": "i1mwqy35y88hl",
         "isArchive": false,
         "isInstance": false,
         "isMaintained": false,
         "isUnderPublish": false,
         "logLevel": "DEBUG",
         "monitorAccountList": [
            "xwi9jogl4fcx4",
            "skydu",
            "nx8hcjsq4xk8z",
            "jsonlai",
            "yvkc2kwpy3xzr"
         ],
         "name": "功能演示-v1.5",
         "platform": "web",
         "rowNumber": 1,
         "saveProcessLogDays": 0,
         "saveProcessLogTypes": [],
         "underPublishServerId": "informat-biz-prd",
         "updateAccountId": "yvkc2kwpy3xzr",
         "updateTime": 1718159093356
      },
      "platform": "web",
      "query": {
         "appId": "i1mwqy35y88hl"
      },
      "url": "https://next.informat.cn/app/i1mwqy35y88hl",
      "user": {
         "avatar": "pic7.png",
         "companyRoleList": [
            "admin"
         ],
         "departmentList": [
            "root"
         ],
         "id": "xwi9jogl4fcx4",
         "leaderList": [],
         "name": "郭",
         "roleList": [
            "admin"
         ],
         "userInfo": {
            "department": "销售部",
            "role": "admin"
         }
      }
   },
   "eventId": "app.enter",
   "id": "app.enter"
}

进入模块

进入模块监听器事件会在用户从客户端进入应用某个模块后触发。使用此监听器可以实现以下应用场景。

  • 使用 显示对话框 自动化步骤,在客户端显示一个欢迎对话框,向用户展示欢迎信息或应用的使用指南
  • 将用户的访问时间记录到日志表中,以备后续分析或审计

TIP

此监听器事件是在客户端触发,调用的自动化可以包含交互式逻辑

json
{
   "appId": "i1mwqy35y88hl",
   "eventContent": {
      "app": {
         "appData": {
            "taskNum": 6
         },
         "appDefineBuild": 1079,
         "appDefineEditable": true,
         "appDefineId": "demoApp",
         "appDefineVersion": "1.0",
         "badge": "新的提醒",
         "color": "c1",
         "companyId": "icxt9rsd1f0ai",
         "createAccountAvatar": "pic8.png",
         "createAccountId": "ek5veueb6c9zg",
         "createAccountName": "曾烨森",
         "createTime": 1700628728441,
         "dbIndex": 0,
         "designerAccountList": [
            "ek5veueb6c9zg",
            "xwi9jogl4fcx4",
            "skydu",
            "nx8hcjsq4xk8z",
            "fjgefcpk28dsj",
            "jsonlai"
         ],
         "enableAppJsonLog": false,
         "enableAppLog": false,
         "enableSaveProcessLog": false,
         "env": "dev",
         "envPropertyList": [],
         "groupId": "qvwfhdf328lex",
         "hint": "gongnengyanshi-v1.0",
         "icon": "noto-aries",
         "id": "i1mwqy35y88hl",
         "isArchive": false,
         "isInstance": false,
         "isMaintained": false,
         "isUnderPublish": false,
         "logLevel": "DEBUG",
         "monitorAccountList": [
            "xwi9jogl4fcx4",
            "skydu"
         ],
         "name": "功能演示-v1.0",
         "platform": "web",
         "rowNumber": 1,
         "saveProcessLogDays": 0,
         "saveProcessLogTypes": [],
         "underPublishServerId": "informat-biz-prd",
         "updateAccountId": "ek5veueb6c9zg",
         "updateTime": 1703572224491
      },
      "moduleKey": "listenerData",
      "platform": "web",
      "query": {
         "appId": "i1mwqy35y88hl",
         "moduleId": "snahtjpjwbz3f"
      },
      "url": "https://next.informat.cn/app/i1mwqy35y88hl/table/snahtjpjwbz3f",
      "user": {
         "avatar": "db379f35e7554f65bb51462a4fb03ac5.jpg",
         "companyRoleList": [
            "normal",
            "designer",
            "admin"
         ],
         "departmentList": [
            "root"
         ],
         "id": "fjgefcpk28dsj",
         "leaderList": [
            "skydu"
         ],
         "name": "李健",
         "roleList": [
            "admin",
            "manager"
         ],
         "userInfo": {
            "department": "销售部",
            "role": "admin"
         }
      }
   },
   "eventId": "app.module.enter",
   "id": "app.module.enter",
   "moduleId": "snahtjpjwbz3f"
}

应用发布

在应用发布后触发

json
{
   "content": {
      "appDefineId": "demoApp",
      "appId": "i1mwqy35y88hl",
      "build": 1906,
      "companyId": "icxt9rsd1f0ai",
      "publishUser": "肖建宇"
   },
   "id": "app.publish"
}

成员事件

成员事件在通过成员管理界面添加、删除、修改成员角色操作后触发。

json
{
   "content": {
      "appDefineId": "demoApp",
      "appId": "i1mwqy35y88hl",
      "companyId": "icxt9rsd1f0ai",
      "roleList": [
         "admin"
      ],
      "userId": "bt4tdzx8vtjoe"
   },
   "id": "app.member.add.after"
}
json
{
   "content": {
      "appDefineId": "demoApp",
      "appId": "i1mwqy35y88hl",
      "companyId": "icxt9rsd1f0ai",
      "roleList": [
         "admin"
      ],
      "userId": "pacrwba408wd0"
   },
   "id": "app.member.remove.after"
}
json
{
   "content": {
      "afterRoleList": [
         "admin",
         "ceo",
         "manager"
      ],
      "appDefineId": "demoApp",
      "appId": "i1mwqy35y88hl",
      "beforeRoleList": [
         "admin",
         "ceo"
      ],
      "companyId": "icxt9rsd1f0ai",
      "userId": "yvkc2kwpy3xzr"
   },
   "id": "app.member.role.update.after"
}

任务状态变更

在应用内,归属于监听的工作流的任务发生委托转交跳转节点完成任务认领任务开始任务行为时触发。

TIP

此监听器事件是在客户端触发,调用的自动化可以包含交互式逻辑

json
{
    "eventId": "client.bpmn.task.change",
    "eventContent": {
        "app": {
            "createAccountName": "曾烨森",
            "visitModuleKey": "listenWorkflow",
            "designerPublishAccountList": [
                "xwi9jogl4fcx4",
                "skydu",
                "jsonlai",
                "yvkc2kwpy3xzr",
                "skydu2",
                "nx8hcjsq4xk8z"
            ],
            "color": "#9470DC",
            "groupId": "qvwfhdf328lex",
            "appDefineEditable": true,
            "enableSaveProcessLog": false,
            "icon": "noto-glowing-star",
            "createAccountId": "ek5veueb6c9zg",
            "appData": {
                "taskNum": 0
            },
            "createAccountAvatar": "pic8.png",
            "platform": "web",
            "monitorAccountList": [
                "xwi9jogl4fcx4",
                "skydu",
                "nx8hcjsq4xk8z",
                "jsonlai",
                "yvkc2kwpy3xzr"
            ],
            "isInstance": false,
            "logLevel": "DEBUG",
            "isMaintained": false,
            "dbIndex": 0,
            "enableAppJsonLog": false,
            "saveProcessLogTypes": [],
            "isUnderPublish": false,
            "id": "i1mwqy35y88hl",
            "rowNumber": 1,
            "appDefineBuild": 2485,
            "appDefineId": "demoApp",
            "envPropertyList": [
                {
                    "id": "payID",
                    "value": "覆盖的值"
                }
            ],
            "isArchive": false,
            "underPublishServerId": "informat-biz2-prd",
            "appDefineVersion": "1.5",
            "designerAccountList": [
                "xwi9jogl4fcx4",
                "skydu",
                "nx8hcjsq4xk8z",
                "jsonlai",
                "yvkc2kwpy3xzr",
                "skydu2",
                "lxx2gntjifxbh",
                "bt4tdzx8vtjoe"
            ],
            "saveProcessLogDays": 0,
            "updateTime": 1719557611739,
            "updateAccountId": "jsonlai",
            "env": "dev",
            "designerEditAccountList": [
                "xwi9jogl4fcx4",
                "skydu",
                "jsonlai",
                "yvkc2kwpy3xzr",
                "skydu2",
                "nx8hcjsq4xk8z"
            ],
            "badge": "重要",
            "companyId": "icxt9rsd1f0ai",
            "createTime": 1700628728441,
            "hint": "gongnengyanshi-v1.5",
            "name": "功能演示-v1.5",
            "enableAppLog": false
        },
        "query": {
            "appId": "i1mwqy35y88hl",
            "moduleId": "ztkva3xsc2vbw"
        },
        "moduleId": "ztkva3xsc2vbw",
        "user": {
            "userInfo": {
                "role": "admin",
                "department": "销售部"
            },
            "leaderList": [],
            "name": "赖泽城",
            "companyRoleList": [
                "normal",
                "designer"
            ],
            "avatar": "8e321dac2d1e465f9b503360af87930e.jpg",
            "id": "jsonlai",
            "departmentList": [
                "root"
            ],
            "roleList": [
                "admin"
            ]
        },
        "url": "https://next.informat.cn/app/i1mwqy35y88hl/bpmn/ztkva3xsc2vbw"
    },
    "id": "client.bpmn.task.change"
}

流程状态变更

在应用内,监听的工作流发生撤销删除行为时触发。

TIP

此监听器事件是在客户端触发,调用的自动化可以包含交互式逻辑

json
{
  "eventId": "client.bpmn.process.change",
  "eventContent": {
    "app": {
      "createAccountName": "曾烨森",
      "visitModuleKey": "listenWorkflow",
      "designerPublishAccountList": [
        "xwi9jogl4fcx4",
        "skydu",
        "jsonlai",
        "yvkc2kwpy3xzr",
        "skydu2",
        "nx8hcjsq4xk8z"
      ],
      "color": "#9470DC",
      "groupId": "qvwfhdf328lex",
      "appDefineEditable": true,
      "enableSaveProcessLog": false,
      "icon": "noto-glowing-star",
      "createAccountId": "ek5veueb6c9zg",
      "appData": {
        "taskNum": 0
      },
      "createAccountAvatar": "pic8.png",
      "platform": "web",
      "monitorAccountList": [
        "xwi9jogl4fcx4",
        "skydu",
        "nx8hcjsq4xk8z",
        "jsonlai",
        "yvkc2kwpy3xzr"
      ],
      "isInstance": false,
      "logLevel": "DEBUG",
      "isMaintained": false,
      "dbIndex": 0,
      "enableAppJsonLog": false,
      "saveProcessLogTypes": [],
      "isUnderPublish": false,
      "id": "i1mwqy35y88hl",
      "rowNumber": 1,
      "appDefineBuild": 2488,
      "appDefineId": "demoApp",
      "envPropertyList": [
        {
          "id": "payID",
          "value": "覆盖的值"
        }
      ],
      "isArchive": false,
      "underPublishServerId": "informat-biz2-prd",
      "appDefineVersion": "1.5",
      "designerAccountList": [
        "xwi9jogl4fcx4",
        "skydu",
        "nx8hcjsq4xk8z",
        "jsonlai",
        "yvkc2kwpy3xzr",
        "skydu2",
        "lxx2gntjifxbh",
        "bt4tdzx8vtjoe"
      ],
      "saveProcessLogDays": 0,
      "updateTime": 1719558525789,
      "updateAccountId": "jsonlai",
      "env": "dev",
      "designerEditAccountList": [
        "xwi9jogl4fcx4",
        "skydu",
        "jsonlai",
        "yvkc2kwpy3xzr",
        "skydu2",
        "nx8hcjsq4xk8z"
      ],
      "badge": "重要",
      "companyId": "icxt9rsd1f0ai",
      "createTime": 1700628728441,
      "hint": "gongnengyanshi-v1.5",
      "name": "功能演示-v1.5",
      "enableAppLog": false
    },
    "instanceId": "6f5771e7-351d-11ef-b137-a6c0b0be7615",
    "query": {
      "ri": "6f5771e7-351d-11ef-b137-a6c0b0be7615",
      "appId": "i1mwqy35y88hl",
      "moduleId": "ztkva3xsc2vbw"
    },
    "moduleId": "ztkva3xsc2vbw",
    "type": "delete",
    "user": {
        "userInfo": {
            "role": "admin",
            "department": "销售部"
        },
        "leaderList": [],
        "name": "赖泽城",
        "companyRoleList": ["normal", "designer"],
        "avatar": "8e321dac2d1e465f9b503360af87930e.jpg",
        "id": "jsonlai",
        "departmentList": ["root"],
        "roleList": ["admin"]
    },
    "url": "https://next.informat.cn/app/i1mwqy35y88hl/bpmn/ztkva3xsc2vbw?ri=6f5771e7-351d-11ef-b137-a6c0b0be7615"
  },
  "id": "client.bpmn.process.change"
}

数据表记录创建后(客户端触发)

用户通过表单提交用户通过工作流提交的数据表记录,在创建后触发

TIP

此监听器事件是在客户端触发,调用的自动化可以包含交互式逻辑

json
{
    "eventId": "client.record.create.after",
    "eventContent": {
        "app": {
            "createAccountName": "曾烨森",
            "visitModuleKey": "listenerData",
            "designerPublishAccountList": [
                "xwi9jogl4fcx4",
                "skydu",
                "jsonlai",
                "yvkc2kwpy3xzr",
                "skydu2",
                "nx8hcjsq4xk8z"
            ],
            "color": "#9470DC",
            "groupId": "qvwfhdf328lex",
            "appDefineEditable": true,
            "enableSaveProcessLog": false,
            "icon": "noto-glowing-star",
            "createAccountId": "ek5veueb6c9zg",
            "appData": {
                "taskNum": 0
            },
            "createAccountAvatar": "pic8.png",
            "platform": "web",
            "monitorAccountList": [
                "xwi9jogl4fcx4",
                "skydu",
                "nx8hcjsq4xk8z",
                "jsonlai",
                "yvkc2kwpy3xzr"
            ],
            "isInstance": false,
            "logLevel": "DEBUG",
            "isMaintained": false,
            "dbIndex": 0,
            "enableAppJsonLog": false,
            "saveProcessLogTypes": [],
            "isUnderPublish": false,
            "id": "i1mwqy35y88hl",
            "rowNumber": 1,
            "appDefineBuild": 2488,
            "appDefineId": "demoApp",
            "envPropertyList": [
                {
                    "id": "payID",
                    "value": "覆盖的值"
                }
            ],
            "isArchive": false,
            "underPublishServerId": "informat-biz2-prd",
            "appDefineVersion": "1.5",
            "designerAccountList": [
                "xwi9jogl4fcx4",
                "skydu",
                "nx8hcjsq4xk8z",
                "jsonlai",
                "yvkc2kwpy3xzr",
                "skydu2",
                "lxx2gntjifxbh",
                "bt4tdzx8vtjoe"
            ],
            "saveProcessLogDays": 0,
            "updateTime": 1719558525789,
            "updateAccountId": "jsonlai",
            "env": "dev",
            "designerEditAccountList": [
                "xwi9jogl4fcx4",
                "skydu",
                "jsonlai",
                "yvkc2kwpy3xzr",
                "skydu2",
                "nx8hcjsq4xk8z"
            ],
            "badge": "重要",
            "companyId": "icxt9rsd1f0ai",
            "createTime": 1700628728441,
            "hint": "gongnengyanshi-v1.5",
            "name": "功能演示-v1.5",
            "enableAppLog": false
        },
        "query": {
            "appId": "i1mwqy35y88hl",
            "moduleId": "snahtjpjwbz3f"
        },
        "tableId": "snahtjpjwbz3f",
        "source": "form",
        "user": {
            "userInfo": {
                "role": "admin",
                "department": "销售部"
            },
            "leaderList": [],
            "name": "赖泽城",
            "companyRoleList": [
                "normal",
                "designer"
            ],
            "avatar": "8e321dac2d1e465f9b503360af87930e.jpg",
            "id": "jsonlai",
            "departmentList": [
                "root"
            ],
            "roleList": [
                "admin"
            ]
        },
        "url": "https://next.informat.cn/app/i1mwqy35y88hl/table/snahtjpjwbz3f"
    },
    "id": "client.record.create.after"
}

数据表记录更新后(客户端触发)

用户通过表单提交用户通过工作流提交的数据表记录,在更新后触发

TIP

此监听器事件是在客户端触发,调用的自动化可以包含交互式逻辑

json
{
    "eventId": "client.record.update.after",
    "eventContent": {
        "app": {
            "createAccountName": "曾烨森",
            "visitModuleKey": "listenerData",
            "designerPublishAccountList": [
                "xwi9jogl4fcx4",
                "skydu",
                "jsonlai",
                "yvkc2kwpy3xzr",
                "skydu2",
                "nx8hcjsq4xk8z"
            ],
            "color": "#9470DC",
            "groupId": "qvwfhdf328lex",
            "appDefineEditable": true,
            "enableSaveProcessLog": false,
            "icon": "noto-glowing-star",
            "createAccountId": "ek5veueb6c9zg",
            "appData": {
                "taskNum": 0
            },
            "createAccountAvatar": "pic8.png",
            "platform": "web",
            "monitorAccountList": [
                "xwi9jogl4fcx4",
                "skydu",
                "nx8hcjsq4xk8z",
                "jsonlai",
                "yvkc2kwpy3xzr"
            ],
            "isInstance": false,
            "logLevel": "DEBUG",
            "isMaintained": false,
            "dbIndex": 0,
            "enableAppJsonLog": false,
            "saveProcessLogTypes": [],
            "isUnderPublish": false,
            "id": "i1mwqy35y88hl",
            "rowNumber": 1,
            "appDefineBuild": 2488,
            "appDefineId": "demoApp",
            "envPropertyList": [
                {
                    "id": "payID",
                    "value": "覆盖的值"
                }
            ],
            "isArchive": false,
            "underPublishServerId": "informat-biz2-prd",
            "appDefineVersion": "1.5",
            "designerAccountList": [
                "xwi9jogl4fcx4",
                "skydu",
                "nx8hcjsq4xk8z",
                "jsonlai",
                "yvkc2kwpy3xzr",
                "skydu2",
                "lxx2gntjifxbh",
                "bt4tdzx8vtjoe"
            ],
            "saveProcessLogDays": 0,
            "updateTime": 1719558525789,
            "updateAccountId": "jsonlai",
            "env": "dev",
            "designerEditAccountList": [
                "xwi9jogl4fcx4",
                "skydu",
                "jsonlai",
                "yvkc2kwpy3xzr",
                "skydu2",
                "nx8hcjsq4xk8z"
            ],
            "badge": "重要",
            "companyId": "icxt9rsd1f0ai",
            "createTime": 1700628728441,
            "hint": "gongnengyanshi-v1.5",
            "name": "功能演示-v1.5",
            "enableAppLog": false
        },
        "recordList": [
            "c67wwyqeth1up"
        ],
        "query": {
            "ri": "c67wwyqeth1up",
            "appId": "i1mwqy35y88hl",
            "moduleId": "snahtjpjwbz3f"
        },
        "tableId": "snahtjpjwbz3f",
        "source": "form",
        "user": {
            "userInfo": {
                "role": "admin",
                "department": "销售部"
            },
            "leaderList": [],
            "name": "赖泽城",
            "companyRoleList": [
                "normal",
                "designer"
            ],
            "avatar": "8e321dac2d1e465f9b503360af87930e.jpg",
            "id": "jsonlai",
            "departmentList": [
                "root"
            ],
            "roleList": [
                "admin"
            ]
        },
        "url": "https://next.informat.cn/app/i1mwqy35y88hl/table/snahtjpjwbz3f?ri=c67wwyqeth1up"
    },
    "id": "client.record.update.after"
}

数据表记录删除后(客户端触发)

用户通过表单提交用户通过工作流提交的数据表记录,在删除后触发

TIP

此监听器事件是在客户端触发,调用的自动化可以包含交互式逻辑

json
{
    "eventId": "client.record.delete.after",
    "eventContent": {
        "app": {
            "createAccountName": "曾烨森",
            "visitModuleKey": "listenerData",
            "designerPublishAccountList": [
                "xwi9jogl4fcx4",
                "skydu",
                "jsonlai",
                "yvkc2kwpy3xzr",
                "skydu2",
                "nx8hcjsq4xk8z"
            ],
            "color": "#9470DC",
            "groupId": "qvwfhdf328lex",
            "appDefineEditable": true,
            "enableSaveProcessLog": false,
            "icon": "noto-glowing-star",
            "createAccountId": "ek5veueb6c9zg",
            "appData": {
                "taskNum": 0
            },
            "createAccountAvatar": "pic8.png",
            "platform": "web",
            "monitorAccountList": [
                "xwi9jogl4fcx4",
                "skydu",
                "nx8hcjsq4xk8z",
                "jsonlai",
                "yvkc2kwpy3xzr"
            ],
            "isInstance": false,
            "logLevel": "DEBUG",
            "isMaintained": false,
            "dbIndex": 0,
            "enableAppJsonLog": false,
            "saveProcessLogTypes": [],
            "isUnderPublish": false,
            "id": "i1mwqy35y88hl",
            "rowNumber": 1,
            "appDefineBuild": 2488,
            "appDefineId": "demoApp",
            "envPropertyList": [
                {
                    "id": "payID",
                    "value": "覆盖的值"
                }
            ],
            "isArchive": false,
            "underPublishServerId": "informat-biz2-prd",
            "appDefineVersion": "1.5",
            "designerAccountList": [
                "xwi9jogl4fcx4",
                "skydu",
                "nx8hcjsq4xk8z",
                "jsonlai",
                "yvkc2kwpy3xzr",
                "skydu2",
                "lxx2gntjifxbh",
                "bt4tdzx8vtjoe"
            ],
            "saveProcessLogDays": 0,
            "updateTime": 1719558525789,
            "updateAccountId": "jsonlai",
            "env": "dev",
            "designerEditAccountList": [
                "xwi9jogl4fcx4",
                "skydu",
                "jsonlai",
                "yvkc2kwpy3xzr",
                "skydu2",
                "nx8hcjsq4xk8z"
            ],
            "badge": "重要",
            "companyId": "icxt9rsd1f0ai",
            "createTime": 1700628728441,
            "hint": "gongnengyanshi-v1.5",
            "name": "功能演示-v1.5",
            "enableAppLog": false
        },
        "recordList": [
            "c67wwyqeth1up"
        ],
        "query": {
            "appId": "i1mwqy35y88hl",
            "moduleId": "snahtjpjwbz3f"
        },
        "tableId": "snahtjpjwbz3f",
        "user": {
            "userInfo": {
                "role": "admin",
                "department": "销售部"
            },
            "leaderList": [],
            "name": "赖泽城",
            "companyRoleList": [
                "normal",
                "designer"
            ],
            "avatar": "8e321dac2d1e465f9b503360af87930e.jpg",
            "id": "jsonlai",
            "departmentList": [
                "root"
            ],
            "roleList": [
                "admin"
            ]
        },
        "url": "https://next.informat.cn/app/i1mwqy35y88hl/table/snahtjpjwbz3f?ri"
    },
    "id": "client.record.delete.after"
}