English
Object Details Page Task Button Enhancements
About 367 wordsAbout 1 min
2026-05-08
- Customize the action buttons on the Business Flow task card. * *
Description
Before the task card buttons are rendered, customize the exposed buttons, more buttons, and buttons in the abnormal state, including button name, order, and invisible controls.
# Example of a typical scenario
- Scenario 1 * *: Approval node custom consent/reject button
Example: Change the text of the "Agree" button to "Pass and send notification"
- Scenario 1 * *: Approval node custom consent/reject button
- Scenario 2 * *: hide button based on approver
Ex: Hide all action buttons when the current user is not a approver
- Scenario 2 * *: hide button based on approver
- Scenario 3 * *: Exception Task Special Button Handling
Example: Display two custom buttons "Retry" and "Ignore" in an abnormal state
- Scenario 3 * *: Exception Task Special Button Handling
Applicable Scenario
- Requires fine-grained control over the presentation and interaction of card-level buttons
- Button presentation in different task types or statuses that need to be handled
- The button needs to be hidden according to the user's permissions
# Applicable Pages
- Object Details Page - Task Card Area
# Development Ideas
Enhancements can often be broken down into three steps:
- Identify which link to enhance * *
- Determine if you want to modify the button copy, adjust the button order, or control the button to be invisible
- Identify the types of buttons that need to be customized (exposed/more/abnormal)
- Select the appropriate extension event/hook * *
- Mobile:
flow.bpm.detailcard.item.bottombtn.render.before - Web:
bpm.detailCard.render.before
- Access the extension point in the plugin and verify the behavior * *
- Get button data under the current task
- Filter and modify target buttons based on
taskId,state, etc.
DEVELOPMENT WORKFLOW
- Determine button range * *
- Identify the types of buttons that need to be customized (exposed/more/abnormal)
- Specific fields explicitly modified
- Select an event * *
- Mobile:
flow.bpm.detailcard.item.bottombtn.render.before - Web:
bpm.detailCard.render.before
- Write custom logic * *
- Logic customization according to special needs
- Configuration to Process * *
- Select the corresponding plugin in the custom plugin configuration
# Recommended entrance
Caution
- Do not add new buttons * *: You can only delete, change, or change the data on the original buttons
- Keep the data structure intact * *: The original data structure must be kept intact
- Permissions * *: The final appearance of the button may also be affected by permissions and task status
