How to show data of non-persistent entity before commit ?

If I select one or multiple row of datagrid then visit next page by clicking on continue button and it opens a form page which has non-persistent entity mapped for that I want to show a table below which shows selected data from datagrid and data of non-persistent entity which is entered by us .  After this I want to go back  and select more rows and repeat the same, how can I achieve this ?
1 answers

Attach those selected object with a reference to the non persistent object and show that object in the second page. And attach this object to the current user. This way you could retrieve the non persistent object again in a microflow when you add more objects to it.