English
flow.approval.detail.parse.before
About 95 wordsLess than 1 minute
2026-04-17
flow.approval.detail.parse.before
Description: This hook is used to rewrite detail data before approval details are parsed.
1. feedDetail
Feature Description
- Rewrites detail data before approval details are parsed.
Parameters
| Parameter | Description | Type |
|---|---|---|
| feedDetail | Approval detail data | Object |
| buttonList | button list | Array |
Return Value
| Parameter | Description | Type |
|---|---|---|
| feedDetail | Approval detail data | Object |
Parameter Code Example
let feedDetail = options && options.feedDetail;Code Example
module.exports = function (context, pluginService, pluginParam) {
return {
apply() {
return [
{
event: "flow.approval.detail.parse.before",
functional: async function (context, options) {
let feedDetail = options && options.feedDetail;
let buttonList = options && options.buttonList;
return Promise.resolve({
feedDetail: feedDetail
});
}
}
];
}
};
};