Workflow approved tasks

0
How can users view the details of their approved forms? According to the page provided by the workflow commons module, only simple information can be viewed. I want to see the details of the original form. How to achieve this? 
asked
2 answers
0

The best way is to use the object that you uses with the microflow. Fill the object during the task that are completed with the relevent data you want to store. There is always an option to created an extra associated entity with all stap details, create, change and commit it during tasks events....

answered
0

Hi ErkangHui,

Not sure if I understand the question correctly based on the info provided. 

Assuming you have the UserTaskView object you can retrieve the Workflow object from there. By using the Microflow function "Retrieve workflow context" you will get the core object of the form. You can use this to show it in a page.

Note: This object could have changed over time when it goes through the workflow. In case you want to store a "snaphot" of the data when a user task is completed you can do this by using the workflow event handler. https://docs.mendix.com/refguide/workflow-events/  For selected events (e.g. task complete) the event is fired and in a MF you can decide to store the data of the form data (context entity) of that moment. FYI: The Workflow Commons Module also has an audit trail function based on these events. You could use is as an example and extend it to store form data as well for certain events. 

answered