简体中文
flow.bpm.detailcard.instancecard.render.before
约 202 字小于 1 分钟
2026-04-17
flow.bpm.detailcard.instancecard.render.before
说明:该钩子用于改写新版实例卡片当前泳道的任务列表,或插入实例级自定义组件。
一. customComponten
功能描述
- 改写新版实例卡片当前泳道的任务列表,或插入实例级自定义组件。
参数
| 参数 | 说明 | 类型 |
|---|---|---|
| objectInfo | 对象信息 | Object |
| laneId | 当前泳道 ID | String |
| instance | 实例数据 | Object |
| currentLaneIndex | currentLaneIndex | Object |
| allTasks | 当前泳道任务列表 | Array |
| pluginManage | 插件管理器 | Object |
返回结果
| 参数 | 说明 | 类型 |
|---|---|---|
| customComponten | 自定义组件配置 | Object |
参数代码示例
let objectInfo = options && options.objectInfo;代码示例
module.exports = function (context, pluginService, pluginParam) {
return {
apply() {
return [
{
event: "flow.bpm.detailcard.instancecard.render.before",
functional: async function (context, options) {
let objectInfo = options && options.objectInfo;
let laneId = options && options.laneId;
let instance = options && options.instance;
let currentLaneIndex = options && options.currentLaneIndex;
let allTasks = options && options.allTasks;
let pluginManage = options && options.pluginManage;
return Promise.resolve({
customComponten: {}
});
}
}
];
}
};
};