<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Different behaviour in TaskState in Task Switch Event (Gateway) and User Task</title><link>https://answers.axonivy.com/questions/1927/different-behaviour-in-taskstate-in-task-switch-event-gateway-and-user-task</link><description>&lt;p&gt;Hi Ivy Team&lt;/p&gt;
&lt;p&gt;According to the published document, the &lt;em&gt;User Task&lt;/em&gt; is specified&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The User Task element calls a User Dialog in a new Task. Thus, it combines the behavior of a Task Switch Event and a User Dialog.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Given the following process:&lt;/p&gt;
&lt;p&gt;&lt;img alt="alt text" src="https://s31.postimg.org/nm1tuumgr/different_behavior_of_task_state_between_user_ta.png"&gt;&lt;/p&gt;
&lt;p&gt;If I run &lt;code&gt;StartTaskSwitchEvent&lt;/code&gt;, a new task will be created. If I run the task, the &lt;code&gt;MainDialog&lt;/code&gt; will be opened. At this point, the &lt;code&gt;TaskState&lt;/code&gt; of the &lt;code&gt;ITask&lt;/code&gt; is already &lt;code&gt;RESUMED&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;However, if I run &lt;code&gt;StartUserTask&lt;/code&gt;, a new task will be created. If I run the task, the &lt;code&gt;MainDialog&lt;/code&gt; will be opened. The strange thing is, the &lt;code&gt;TaskState&lt;/code&gt; is still &lt;code&gt;SUSPENDED&lt;/code&gt;. Only if I exit the &lt;code&gt;MainDialog&lt;/code&gt; and reach the next step (&lt;code&gt;SecondDialog&lt;/code&gt;), its state is updated to &lt;code&gt;RESUMED&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Could you explain this behavior?&lt;/p&gt;
&lt;p&gt;P.S: Tested on Axon.ivy Designer 6.2.0.&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/1927/different-behaviour-in-taskstate-in-task-switch-event-gateway-and-user-task" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 03 Aug 2016 10:52:11 -0400</lastBuildDate><item><title>Answer by Christian Strebel</title><link>https://answers.axonivy.com/questions/1927/different-behaviour-in-taskstate-in-task-switch-event-gateway-and-user-task/1932</link><description>&lt;p&gt;See the documentaion about the &lt;a href="http://developer.axonivy.com/doc/latest/DesignerGuideHtml/ivy.concepts.html#ivy-wf-states"&gt;workflow states&lt;/a&gt; for more info.&lt;/p&gt;
&lt;p&gt;It is designed that if you take a task from an UserTask also another user can do the same unless the task is finised.
It's now more like optimisic locking. Because with the task switch we had the problem that many users just clicked on a task and then not finished it, but for the time until the session of this user ended the task was not visible to anybody.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christian Strebel</dc:creator><pubDate>Wed, 03 Aug 2016 10:52:11 -0400</pubDate><guid>https://answers.axonivy.com/questions/1927/different-behaviour-in-taskstate-in-task-switch-event-gateway-and-user-task/1932</guid></item></channel></rss>