<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Task State inside HtmlUserDialog of UserTask is always SUSPENDED</title><link>https://answers.axonivy.com/questions/2169/task-state-inside-htmluserdialog-of-usertask-is-always-suspended</link><description>&lt;p&gt;hi all&lt;/p&gt;
&lt;p&gt;I'm not sure it is a trouble in Axon Ivy or may be i'm wrong in this situation, as my understanding about task (reference to &lt;a href="http://developer.axonivy.com/doc/"&gt;Documentation&lt;/a&gt;), the task state will be changed when a user open it. But somehow it's quite strange when i use UserTask (new element, with embedded HtmlUserDialog). When user open that task then it open embedded HtmlUserDialog,but the state was not changed to RESUMED as i expect. so i can't prevent another user from opening it (i want just one user can open a same task in the same time), &lt;/p&gt;
&lt;p&gt;Everything normal in case i use normal task switch element.
I describe task state as below picture (in my investigation):
&lt;img alt="alt text" src="http://answers.axonivy.com/upfiles/Untitled_1K9qROP.png"&gt;&lt;/p&gt;
&lt;p&gt;Is it the way we handle for UserTask element? or do we have any way to know the task is already opened or not?
Here is the &lt;a href="https://drive.google.com/file/d/0B6qldkZvvHgHMmNNLWhtYWtnLUU/view?usp=sharing"&gt;demo&lt;/a&gt; (Axon ivy 6.3)&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/2169/task-state-inside-htmluserdialog-of-usertask-is-always-suspended" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 09 Nov 2016 09:43:56 -0500</lastBuildDate><item><title>Answer by trungdv</title><link>https://answers.axonivy.com/questions/2169/task-state-inside-htmluserdialog-of-usertask-is-always-suspended/2176</link><description>&lt;p&gt;&lt;strong&gt;Answer for 6.5.0 and 6.0.6 (LTS)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The state for normal HtmlUserDialog is now automatically changed to RESUMED as soon as a user picks up the task. 
The state SUSPENDED is only kept for UserTask that open an OfflineUserDialog. 
See also the updated designer documentation: &lt;a href="http://developer.axonivy.com/doc/latest/DesignerGuideHtml/ivy.concepts.html#d5e17755"&gt;http://developer.axonivy.com/doc/latest/DesignerGuideHtml/ivy.concepts.html#d5e17755&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This behaviour change was introduced with 6.0.6 and the sprint release 6.4.1-S18&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Workaround for 6.0.5 and 6.4.0&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I've an work-around solution for this problem like:&lt;/p&gt;
&lt;p&gt;&lt;img alt="alt text" src="http://answers.axonivy.com/upfiles/image003.png"&gt;
In this solution, we introduce a Passthrough HtmlUserDialog then use it as embedded dialog on User Task, for the main page we move it out.
The Passthrought dialog just simple to skip auto dialog of User Task and user will not see anything strange when opening the task. Here is its implementation (just simply construct then destroy immediately):
&lt;img alt="alt text" src="http://answers.axonivy.com/upfiles/image004.png"&gt;
Now, the task state is RESUMED when user open Main Page.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">trungdv</dc:creator><pubDate>Wed, 09 Nov 2016 09:43:56 -0500</pubDate><guid>https://answers.axonivy.com/questions/2169/task-state-inside-htmluserdialog-of-usertask-is-always-suspended/2176</guid></item></channel></rss>