The “Do when” probably is subscribed to the datatype with some constraint by using websockets ( a live connection to the server). Immediately when a new item in the database it pushes out a message to the web client on the live connection. Upon the web client receiving such notification it runs an action to display the data and show the popup.