I have a datagrid with a source microflow, that mircoflow take a bit of time because I am making a rest call inside of it. The problem is when a user is clicking on a button I refresh that datagrid, but I have no way to make the progress bar appeared. (the button clicked just refresh the datagrid). my datagrid retrieve non persistable entities, I am creating a list inside of the microflow and return it. (I need a list because I need to sort the elements that I receive).
If your web-service is returning only objects , make a call whenever you need data from Web-Service, if not you can make association with pesistable entities and save data in it. When clicks happens immediately we can have a check when last hit happened. If hit happened long back we can hit that service else can retrieve from association.
Call a microflow when user clicks that button, change that Microflow settings.
Hope This will Help! Thanks