English
flow.bpm.edit.form.render.before
About 289 wordsLess than 1 minute
2025-09-22
This hook is used before a business flow task is rendered. You can configure capabilities such as forcibly opening an edit-content dialog or page.
Note: This hook is used before a business flow task is rendered. You can configure capabilities such as forcibly opening an edit-content dialog/page.
forceShowEditForm
- If the edit content is configured as a standard layout, and there are no required fields or the required fields already have values, the edit-content dialog will not be opened and the task will be completed directly.
- If the edit content is configured as a workflow layout, and there are no required fields and no source object, the edit-content dialog will not be opened and the task will be completed directly.
- If this PWC plugin is configured, then even in the above two cases, the edit-content dialog/page will still be opened so that fields can be edited before completing the task.
Parameters
| Parameter | Description | Type |
|---|---|---|
| isForceShowEditForm | true: forcibly open the edit-content dialog/pagefalse: do not forcibly open the edit-content dialog/page | Boolean |
Parameter Code Example
forceShowEditForm: trueCode Example
module.exports = function (context, pluginService, pluginParam) {
return {
apply() {
let self = this;
return [{
/**
* Exposes externally injected methods to the plugin
* Whether to forcibly enter the form page when the business flow has a form
*/
event: "flow.bpm.edit.form.render.before",
functional: async function (context, options) {
return Promise.resolve({
// If the return value is true, the form page is forcibly opened
forceShowEditForm: true,
});
}
}]
}
}
}
