English
flow.bpm.detail.bottom.btn.click.before
About 104 wordsLess than 1 minute
2026-04-17
flow.bpm.detail.bottom.btn.click.before
Description: This hook is used to intercept clicks before bottom buttons on the detail page.
1. isIntercept
Feature Description
- Intercepts clicks before bottom buttons on the detail page.
Parameters
| Parameter | Description | Type |
|---|---|---|
| btnInfo | Information about the clicked button | Object |
| bpmTaskDetail | Business Flow task details | Object |
Return Value
| Parameter | Description | Type |
|---|---|---|
| isIntercept | Whether to intercept the default action | Boolean |
Parameter Code Example
let btnInfo = options && options.btnInfo;Code Example
module.exports = function (context, pluginService, pluginParam) {
return {
apply() {
return [
{
event: "flow.bpm.detail.bottom.btn.click.before",
functional: async function (context, options) {
let btnInfo = options && options.btnInfo;
let bpmTaskDetail = options && options.bpmTaskDetail;
return Promise.resolve({
isIntercept: false
});
}
}
];
}
};
};