English
flow.bpm.task.complete.before
About 96 wordsLess than 1 minute
2026-04-17
flow.bpm.task.complete.before
Description: This hook is used as the final interception point before the task completion request is initiated.
1. isIntercept
Feature Description
- Final interception point before the task completion request is initiated.
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.before",
functional: async function (context, options) {
let bpmTaskDetail = options && options.bpmTaskDetail;
return Promise.resolve({
isIntercept: false
});
}
}
];
}
};
};