Questions Tagged With task-statehttps://answers.axonivy.com/tags/task-state/?type=rss&user=Genzer%20Hawkerquestions tagged <span class="tag">task-state</span>enTue, 02 Aug 2016 12:45:42 -0400Different behaviour in TaskState in Task Switch Event (Gateway) and User Taskhttps://answers.axonivy.com/questions/1927/different-behaviour-in-taskstate-in-task-switch-event-gateway-and-user-task<p>Hi Ivy Team</p> <p>According to the published document, the <em>User Task</em> is specified</p> <blockquote> <p>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.</p> </blockquote> <p>Given the following process:</p> <p><img alt="alt text" src="https://s31.postimg.org/nm1tuumgr/different_behavior_of_task_state_between_user_ta.png"></p> <p>If I run <code>StartTaskSwitchEvent</code>, a new task will be created. If I run the task, the <code>MainDialog</code> will be opened. At this point, the <code>TaskState</code> of the <code>ITask</code> is already <code>RESUMED</code>.</p> <p>However, if I run <code>StartUserTask</code>, a new task will be created. If I run the task, the <code>MainDialog</code> will be opened. The strange thing is, the <code>TaskState</code> is still <code>SUSPENDED</code>. Only if I exit the <code>MainDialog</code> and reach the next step (<code>SecondDialog</code>), its state is updated to <code>RESUMED</code>.</p> <p>Could you explain this behavior?</p> <p>P.S: Tested on Axon.ivy Designer 6.2.0.</p>Genzer HawkerTue, 02 Aug 2016 12:45:42 -0400https://answers.axonivy.com/questions/1927/different-behaviour-in-taskstate-in-task-switch-event-gateway-and-user-tasktaskuser-tasktask-state