


Hi, I'm currently building a workflow system and have already set up the task definitions and the workflow itself.
When a user opens the task detail page, there's an Approve button.
When this button is clicked, the task status is updated correctly.
However, the related data in the database (for example, the status and the user who approved it) does not get updated.
I want to know:
How can I capture the user who performed the approval and update the main data table accordingly when the Approve button is clicked?
For example:
- User A clicks Approve on Task X
- Then, in addition to marking the task as completed, the data instance should also be updated to something like:
status: approved
, approvedBy: User A
Currently, only the task definition gets updated, but the actual data instance does not change.
Thank you!