English
flow.bpm.detail.render.before
About 121 wordsLess than 1 minute
2026-04-17
flow.bpm.detail.render.before
Description: This hook is used to rewrite task details before the detail body is rendered, or insert a custom component.
1. bpmTaskDetail
Feature Description
- Rewrites task details before the detail body is rendered, or inserts a custom component.
Parameters
| Parameter | Description | Type |
|---|---|---|
| taskDetail | Task detail data | Object |
| feed_bpm_task_detail | feed_bpm_task_detail | Object |
| Object |
Return Value
| Parameter | Description | Type |
|---|---|---|
| bpmTaskDetail | Business Flow task details | Object |
| customComponten | Custom component configuration | Object |
Parameter Code Example
let taskDetail = options && options.taskDetail;Code Example
module.exports = function (context, pluginService, pluginParam) {
return {
apply() {
return [
{
event: "flow.bpm.detail.render.before",
functional: async function (context, options) {
let taskDetail = options && options.taskDetail;
let feed_bpm_task_detail = options && options.feed_bpm_task_detail;
let { taskDetail } = options && options.{ taskDetail };
return Promise.resolve({
bpmTaskDetail: taskDetail,
customComponten: {}
});
}
}
];
}
};
};