English
flow.bpm.task.complete.after
About 105 wordsLess than 1 minute
2026-04-17
flow.bpm.task.complete.after
Description: This hook is used to add logic after a task is completed successfully, or intercept the default subsequent return behavior.
1. isIntercept
Feature Description
- Adds logic after a task is completed successfully, or intercepts the default subsequent return behavior.
Parameters
| Parameter | Description | Type |
|---|---|---|
| bpmTaskDetail | Business Flow task details | Object |
Return Value
| Parameter | Description | Type |
|---|---|---|
| isIntercept | Whether to intercept the default action | Boolean |
Parameter Code Example
let bpmTaskDetail = options && options.bpmTaskDetail;Code Example
module.exports = function (context, pluginService, pluginParam) {
return {
apply() {
return [
{
event: "flow.bpm.task.complete.after",
functional: async function (context, options) {
let bpmTaskDetail = options && options.bpmTaskDetail;
return Promise.resolve({
isIntercept: false
});
}
}
];
}
};
};