English
flow.todo.center.remind.init
About 210 wordsLess than 1 minute
2026-06-04
flow.todo.center.remind.init
Description: This hook is used during initialization of the new (2.0) To-Do Center to rewrite bottom buttons for batch operations and set whether comments are required when changing approvers in batch.Supports Approval Workflow and Business Flow.
1. getBatchBottomBtnList
Feature Description
- Triggered before bottom buttons for batch operations in the new To-Do Center are rendered. It can rewrite bottom buttons and set whether comments are required when changing approvers.
Parameters
| Parameters | Description | Type |
|---|---|---|
| todoBizInfo | Process type: Approval Workflow, Business Flow | Object |
Return Value
| Parameters | Description | Type |
|---|---|---|
| methods | Plugin method collection, including getBatchBottomBtnList | Object |
methods.getBatchBottomBtnList Description
| Parameters | Description | Type |
|---|---|---|
| bottomBtnList | Bottom button list | Array |
| btnInfo | Button information | Object |
| batchOptionType | batch operationsType | String |
**Return Value: **
| Parameters | Description | Type |
|---|---|---|
| batchBottomBtnList | Modified bottom button list | Array |
Configurable properties for each bottomBtnList item:
| Property | Description | Type |
|---|---|---|
| changeHandlerOpinionRequired | Set whether change-approver comments are required, true means required and false means not required | Boolean |
Parameter Code Example
let todoBizInfo = options && options.todoBizInfo;Code Example
module.exports = function (context, pluginService, pluginParam) {
return {
apply() {
let self = this;
return [
{
event: "flow.todo.center.remind.init",
functional: async function (context, options) {
console.error("flow.todo.center.remind.init start");
console.error(context);
console.error(options);
console.error("flow.todo.center.remind.init end");
return {
methods: {
getBatchBottomBtnList(bottomBtnList, btnInfo, batchOptionType) {
bottomBtnList.forEach(item => {
item.changeHandlerOpinionRequired = true;
})
return { batchBottomBtnList: bottomBtnList };
},
}
};
}
},
];
}
};
};