English
flow.approval.action.after
About 116 wordsLess than 1 minute
2026-04-17
flow.approval.action.after
Description: This hook is used to add logic after an approval to-do action is executed.
1. isIntercept
Feature Description
- Adds logic after an approval to-do action is executed.
Parameters
| Parameter | Description | Type |
|---|---|---|
| action | Current action information | Object |
| result | Action execution result | Object |
| context | Context capabilities passed through to the plugin | Object |
Return Value
| Parameter | Description | Type |
|---|---|---|
| isIntercept | Whether to intercept the default action | Boolean |
Parameter Code Example
let action = options && options.action;Code Example
module.exports = function (context, pluginService, pluginParam) {
return {
apply() {
return [
{
event: "flow.approval.action.after",
functional: async function (context, options) {
let action = options && options.action;
let result = options && options.result;
let pluginContext = options && options.context;
return Promise.resolve({
isIntercept: false
});
}
}
];
}
};
};