Different behaviour in TaskState in Task Switch Event (Gateway) and User Task
Hi Ivy Team
According to the published document, the _User Task_ is specified
> 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.
Given the following process:
![alt text][1]
!https://s31.postimg.org/nm1tuumgr/different_behavior_of_task_state_between_user_ta.png!
If I run `StartTaskSwitchEvent`, a new task will be created. If I run the task, the `MainDialog` will be opened. At this point, the `TaskState` of the `ITask` is already `RESUMED`.
However, if I run `StartUserTask`, a new task will be created. If I run the task, the `MainDialog` will be opened. The strange thing is, the `TaskState` is still `SUSPENDED`. Only if I exit the `MainDialog` and reach the next step (`SecondDialog`), its state is updated to `RESUMED`.
Could you explain this behavior?
P.S: Tested on Axon.ivy Designer 6.2.0.
[1]: https://s31.postimg.org/nm1tuumgr/different_behavior_of_task_state_between_user_ta.png