English
flow.bpm.detailcard.instancecard.render.before
About 153 wordsLess than 1 minute
2026-04-17
flow.bpm.detailcard.instancecard.render.before
Description: This hook is used to rewrite the task list of the current lane in the new instance card, or insert an instance-level custom component.
1. customComponten
Feature Description
- Rewrites the task list of the current lane in the new instance card, or inserts an instance-level custom component.
Parameters
| Parameter | Description | Type |
|---|---|---|
| objectInfo | Object information | Object |
| laneId | Current lane ID | String |
| instance | Instance data | Object |
| currentLaneIndex | currentLaneIndex | Object |
| allTasks | Task list in the current lane | Array |
| pluginManage | Plugin manager | Object |
Return Value
| Parameter | Description | Type |
|---|---|---|
| customComponten | Custom component configuration | Object |
Parameter Code Example
let objectInfo = options && options.objectInfo;Code Example
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: {}
});
}
}
];
}
};
};