<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: When does the state of task change from resumed to suspended?</title><link>https://answers.axonivy.com/questions/2910/when-does-the-state-of-task-change-from-resumed-to-suspended</link><description>&lt;p&gt;For example, a user is working on a task and closes the windows, when does the state of task change from resumed to suspended?&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/2910/when-does-the-state-of-task-change-from-resumed-to-suspended" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 11 Oct 2017 10:33:39 -0400</lastBuildDate><item><title>Answer by Alex Suter</title><link>https://answers.axonivy.com/questions/2910/when-does-the-state-of-task-change-from-resumed-to-suspended/2911</link><description>&lt;p&gt;The state of the task will be changed from RESUMED to SUSPENDED as soon as the session will be destroyed. This transition is called &lt;em&gt;reset&lt;/em&gt; &lt;code&gt;ch.ivyteam.ivy.workflow.ITask.reset()&lt;/code&gt;. There are multiple reasons why the session will be destroyed:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;the session simply expires&lt;/li&gt;
&lt;li&gt;the user actively logout&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;There is also an API method to logout an user:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ch.ivyteam.ivy.security.ISession.logoutSessionUser()
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And have look here in the sub chapter &lt;em&gt;Task with session timeout&lt;/em&gt;:
&lt;a href="https://developer.axonivy.com/doc/latest/DesignerGuideHtml/ivy.concepts.html#ivy-wf-states"&gt;https://developer.axonivy.com/doc/latest/DesignerGuideHtml/ivy.concepts.html#ivy-wf-states&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Suter</dc:creator><pubDate>Wed, 11 Oct 2017 10:33:39 -0400</pubDate><guid>https://answers.axonivy.com/questions/2910/when-does-the-state-of-task-change-from-resumed-to-suspended/2911</guid></item></channel></rss>