<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Is there a way to terminate a process if a user closes the browser tab/window?</title><link>https://community.appian.com/discussions/f/process/11298/is-there-a-way-to-terminate-a-process-if-a-user-closes-the-browser-tab-window</link><description>In our case management system, we have a process which - 
 
 Is run as a quick task 
 Every UI node in the process has an exception timer 
 When a user launches an action related to a case, the case gets &amp;#39;locked&amp;#39; to the process initiator and no other</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Is there a way to terminate a process if a user closes the browser tab/window?</title><link>https://community.appian.com/thread/131472?ContentTypeID=1</link><pubDate>Wed, 20 Mar 2024 07:29:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6cb9974c-2395-4e87-b12a-5a491e120c2b</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Appian does not provide a way to implement the two use cases you describe. For process start forms, you could provide a button to &amp;quot;Save Progress&amp;quot; that submits and somehow saves the state. For in-process user input tasks, you could just use the &amp;quot;Save Draft&amp;quot; feature.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to terminate a process if a user closes the browser tab/window?</title><link>https://community.appian.com/thread/131468?ContentTypeID=1</link><pubDate>Wed, 20 Mar 2024 05:50:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:89f1a160-62ed-461d-8cda-c7b34527e152</guid><dc:creator>ramp</dc:creator><description>&lt;p&gt;Hi Mike,&lt;/p&gt;
&lt;p&gt;We have a similar use case to configure the timeout at Process level to terminate if the user no longer using the task or left the task tab or closed the task opened browser.&lt;/p&gt;
&lt;p&gt;Kindly provide the logic implemented in the above mentioned expression rule &amp;quot;APN_generateOvernightTimeout()&amp;quot; should provide the one day after the task has been initiated like you specified.&lt;/p&gt;
&lt;p&gt;Our use case:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If the user edits the task, works on it, and close the browser: auto save the progress and close out the task.&lt;/li&gt;
&lt;li&gt;if the user edits the task, works on it, and leaves it open for a prolong period of time: auto save the progress and close out the task.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Your expertise is very much helpful to implement the same.&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to terminate a process if a user closes the browser tab/window?</title><link>https://community.appian.com/thread/49758?ContentTypeID=1</link><pubDate>Mon, 30 Oct 2017 15:36:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:27872129-0226-4ec3-9542-f6bc335780f6</guid><dc:creator>Mike Schmitt</dc:creator><description>For quick tasks, the thing I&amp;#39;ve ended up doing most often is to designate a particular expression rule to generate the task timeout time.  The case I always want to avoid at all costs is where a user is sitting on a form for a long time, i.e. entering information etc, and when they finally hit &amp;quot;Submit&amp;quot;, the timer has fired in the background and they lose all their work (this has happened to me more than once while submitting a detailed support case update on Appian Support).&lt;br /&gt;
&lt;br /&gt;
Back to the expression rule - what I decided works best is to set the time to a point in the future where it&amp;#39;s unlikely that the user is still logged in on their current session (or at all) - such as 1 AM [overnight] the next calendar day.  I don&amp;#39;t believe such a thing is able to be accomplished via a constant, which is why I just go ahead and use a rule, i.e. &amp;quot;APN_generateOvernightTimeout()&amp;quot;, etc.&lt;br /&gt;
&lt;br /&gt;
Unfortunately this doesn&amp;#39;t help much in the case of a user accidentally / intentionally closing out of the quick task early.  If that&amp;#39;s a primary concern, my main suggestion would be then to make the task NOT a quick task, so that the user doesn&amp;#39;t lose it (and get locked out) if they close / switch away from the task.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to terminate a process if a user closes the browser tab/window?</title><link>https://community.appian.com/thread/49757?ContentTypeID=1</link><pubDate>Mon, 30 Oct 2017 14:40:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:79172b33-5d17-48f2-b16f-5b41c1c18774</guid><dc:creator>gianninol</dc:creator><description>&lt;p&gt;Definitely a good idea to document time-outs like this. It&amp;#39;s also good to take it a step further and use a single global constant to configure these time-outs to further ensure consistency and to allow for easy modification of the time-out for all processes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to terminate a process if a user closes the browser tab/window?</title><link>https://community.appian.com/thread/49753?ContentTypeID=1</link><pubDate>Mon, 30 Oct 2017 14:12:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:371f1881-72bd-46e2-a1a0-cf8ec98927f0</guid><dc:creator>saboulnaga</dc:creator><description>You&amp;#39;re best option to mitigate if a user abandons a process that needs to be closed out is to put a timer with a condition defined either on a task or the whole process. However, I do highly recommend that you document these exception timers that will terminate the process. I&amp;#39;ve seen in projects over time where multiple timers are set out throughout the application with different timers associated with them (15mins, 30mins, 45mins) with no overarching rule governing them all. In your case, utilize constants to have consistency in your termination flows, and document their locations so that the support team knows the impact of this.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to terminate a process if a user closes the browser tab/window?</title><link>https://community.appian.com/thread/49686?ContentTypeID=1</link><pubDate>Wed, 25 Oct 2017 19:38:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:dca8d679-b6d0-4c52-a8ca-37d7728ed157</guid><dc:creator>gianninol</dc:creator><description>As far as I know, there is no way in Appian to respond to the event of a browser window/tab being closed, so exception timers may be your only solution. Depending on your use case, you could provide users with the ability to break other users&amp;#39; locks (similar to how Appian lets designers break other user&amp;#39;s locks on expressions), which will mitigate the problem but will not solve it completely.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>