English
flow.bpm.detail.parse.bottom.btn.render.before
About 111 wordsLess than 1 minute
2025-09-22
This hook is used before the bottom buttons of a business flow task detail page are rendered. You can customize button operations.
Note: This hook is used before the bottom buttons of a business flow task detail page are rendered. You can customize button operations.
Parameters
| Parameter | Description | Type |
|---|---|---|
| bottomBtn | Task buttons | Array |
| taskDetail | Task detail information | Object |
Return Value
| Parameter | Description | Type |
|---|---|---|
| bottomBtn | Task buttons | Array |
Code Example
module.exports = function (context, pluginService, pluginParam) {
return {
apply() {
let self = this;
return [{
event: "flow.bpm.detail.parse.bottom.btn.render.before",
functional: async function (context, options) {
let bottomBtn = options && options.bottomBtn;
if (bottomBtn && bottomBtn.length > 0) {
bottomBtn[0].text = 'Renamed Button'
}
return Promise.resolve({
bottomBtn: bottomBtn,
});
}
}]
}
}
}