Hi Aleksei Anisinen,
I like Martijns answer and it gives the user tha actual view each time the page is opened/refreshed. The refresh you can "trigger" on multiple buttons in the page, so you update more often.
If you want a real time view that is automatically updated for all users (in a non Native App) that are on the page, you should store it in an Attribute of a persistent entity and use the Pusher functionalityhttps://docs.mendix.com/appstore/modules/pusher/ to async refresh
Go Make It
Hi Aleksei,
Personally, I would make a non-persistent entity which contains the said amounts. For example:
AmountPending
AmountProcessing
AmountApproved
AmountRejected
On the page which shows you these statistics, you could create a Datasource Microflow which does exactly what you're doing in your current Microflow. Retrieve the list and filter the list for the specific statusses, count the objects of that list and add the result to your non-persistent entity.
Everytime a user opens the page, the data will be refreshed.
Hope this helps!