English
Object Detail Page Instance Area
About 305 wordsAbout 1 min
2026-05-08
- Override the task list for the current stage of the new instance card, or insert an instance-level custom component. * *
Applicable scenarios
Available on * * mobile * *.
Description
Allows you to modify the stage task list or insert an instance-level custom component before the instance card rendering of the Business Flow detail page.
# Example of a typical scenario
- Scenario 1 * *: task filter
Ex: Show only tasks in progress
- Scenario 1 * *: task filter
- Scenario 2 * *: Task Sort Adjustment
Ex: In reverse order of creation time
- Scenario 2 * *: Task Sort Adjustment
- Scenario 3 * *: insert instance-level components
Example: Display task statistics at the top of the instance card
- Scenario 3 * *: insert instance-level components
Applicable Scenario
- Tasks within a stage need to be filtered or sorted based on criteria
- Custom components need to be inserted in the instance card area
# Applicable Pages
- Object Details Page - Instance Card Area
# Development Ideas
Enhancements can often be broken down into three steps:
- Identify which link to enhance * *
- Determine if you want to filter tasks, sort tasks, or insert components
- Select the appropriate extension event/hook * *
- Mobile:
flow.bpm.detailcard.instancecard.render.before
- Access the extension point in the plugin and verify the behavior * *
- Get Stage Information
- Execute business logic (filtering, sorting or calculating statistics)
DEVELOPMENT WORKFLOW
- Clearly modify requirements * *
- Determine if you want to filter tasks, sort tasks, or insert components
- Write enhanced logic * *
module.exports = function (context, pluginService, pluginParam) { return { apply() { return [{ event: "flow.bpm.detailcard.instancecard.render.before", functional: async function (context, options) { let allTasks = options && options.allTasks; return Promise.resolve({ customComponten: {} }); } }]; } }; };- Configure the plugin * *
- Associate plugins in process advanced configurations
# Recommended entrance
Caution
- Stage Context * *: The context of the current stage needs to be taken into account when operating
- Component positioning * *: The inserted component will be rendered in the instance card area
- Data Integrity * *: Ensure data integrity when modifying task lists
