English
approval.reject.render.before
About 217 wordsLess than 1 minute
2025-12-16
Description: this event is called before rendering approval reject
This event is used to perform extra actions before rendering approval reject, including but not limited to: 1. Retrieving workflow data 2. Determining whether the task can be completed directly 3. Completing the task directly
Parameters
| Parameter | Description | Type |
|---|---|---|
| getData | Retrieves workflow data (Example) | Function |
| canDirectCompleteTask | Determines whether the task can be completed directly (Example) | Function |
| directCompleteTask | Completes the task directly (Example) | Function |
| customFormButtons | Customizes workflow layout/form secondary action buttons (Example) | Function |
Examples
1. getData
Retrieves workflow data for custom business logic.
2. canDirectCompleteTask
Determines whether the task can be completed directly. If approval content or approval opinion is required, the task cannot be completed directly.
3. directCompleteTask
Completes the task directly without showing the reject popup.
4. customFormButtons
Customizes the naming, visibility, and ordering of workflow layout/form secondary action buttons.
Notes
- The button array in the input parameters does not include the
Cancelaction button. - Returned button configurations must be customized based on the buttons in the input array.
- If a button does not exist in the returned array, that button will be hidden.
- The display order of buttons is completely determined by the order in the returned array.
