Loding/Progress bar for microflow.

0
I want to display the progress of a microflow in the UI while it is running, showing the completion percentage in real time. However, in Mendix, the UI becomes unresponsive while a microflow is executing, and only updates once the microflow has finished. How can I achieve real-time progress display during the microflow execution?
asked
1 answers
0

Hi Harshita,

A normal microflow runs on the server in a single process, so the UI freezes until the microflow finishes and cannot update progress in real time. To show live progress, you need to break the long-running process into smaller parts that can run asynchronously. A simple way to do this is to use a non-blocking microflow or a scheduled event that updates a progress attribute (like a percentage) in the database after each step. On the page, you can use a progress bar or text widget that reads this value and auto-refreshes at short intervals using a Nanoflow timer. This way, the background microflow keeps updating the progress value, and the UI displays the current progress as it changes, giving the effect of real-time updates without freezing the page.

answered