What do you mean with "during the run"? A refresh only happens at the end of a microflow cascade. There is no refresh in between.
If you want to show changes while your microflow is running, you could run the state transition microflow in the background and build your page with a refresh interval (the template grid can do that). It's not really nice, I know.
Thanks for your answer. I am using three microflows to start the state machine, execute and realize the feedback/ next state to the state machine microflow.
What I am mean with run:
I can try your workaround to refresh the front-end data. But I am not sure if it fixes the issue, which I have with my real application. In this application I am put some data via rest api, starts an external calculation and get the result as well via rest api and show it on the frontend. This was implemented in a single microflow and processing time is between 90s and 120s. So, I will get a timeout for a synchronous call, an asynchronous will not work with the java activities in the microflow. Does the event handler will reset the timeout?
Log (debugging environment)
2020-02-17 10:33:15.494
start state machine
starting state machine
2020-02-17 10:33:25.495
state 1
finished
2020-02-17 10:33:25.497
state machine feedback
commit event
2020-02-17 10:33:35.500
state 2
finished
2020-02-17 10:33:35.502
state machine feedback
commit event
2020-02-17 10:33:35.504
state 3
finished
2020-02-17 10:33:35.505
state machine merge
'end event'
2020-02-17 10:33:35.523
state machine merge
'end event'
2020-02-17 10:33:35.524
state machine merge
'end event'
Now it works :-)