Questions Tagged With processhttps://answers.axonivy.com/tags/process/?type=rss&user=Jailson%20Britoquestions tagged <span class="tag">process</span>enMon, 30 Jan 2017 23:51:34 -0500Detecting when the user closes the window or tab of the browser in a Html Dialoghttps://answers.axonivy.com/questions/2406/detecting-when-the-user-closes-the-window-or-tab-of-the-browser-in-a-html-dialog<p>Hello! I have the following scenario:</p> <ol> <li>User goes to the their Personal Task List;</li> <li>There's 1 task;</li> <li>User closes the window or tab in the browser;</li> <li>User comes back in 5 minutes and goes to their Personal Task List;</li> <li>The task is gone;</li> <li>After 30 minutes, the user refreshes the page;</li> <li>The task is back;</li> </ol> <p><strong>Question 1.</strong> I understand that since the user started to work on that task (step 2), it changed from SUSPENDED to RUNNING, and other users are not able to see that task in the meantime. I don't understand why even the user that is working on that task, can't see the task in the Personal Task List.</p> <p><strong>Question 2.</strong> Using Html Dialog, How to detect when the user change the context on the browser, to bind it to an event in the Logic? For example, if the user closes the tab/window, then it would fire a process to change the task to SUSPENDED again.</p> <p>I found old answers but they don't seem to be the exact scenario:</p> <ul> <li> <p><a href="http://answers.axonivy.com/questions/434/hook-into-global-closing-with-x-on-the-window">Hook into global closing with "X" on the window</a> - It talks about Rich Dialog and Java Class, I am using Html Dialog and I would like to bind it to an event containing a Script Step with a code in Ivy Script;</p> </li> <li> <p><a href="http://answers.axonivy.com/questions/359/how-can-i-logoff-the-user-if-he-closes-the-browser">How can I logoff the user if he closes the browser?</a> - This one says that the task would be immediately available for the same user, but this is not what's happening in my scenario.</p> </li> </ul> <p>Thanks in advance.</p>Jailson BritoMon, 30 Jan 2017 23:51:34 -0500https://answers.axonivy.com/questions/2406/detecting-when-the-user-closes-the-window-or-tab-of-the-browser-in-a-html-dialogprocesshtmldialogtask