Questions Tagged With task-statehttps://answers.axonivy.com/tags/task-state/?type=rssquestions tagged <span class="tag">task-state</span>enMon, 22 Jan 2018 05:12:12 -0500EnvironmentNotAvailableException when using IWorkflowListener.https://answers.axonivy.com/questions/3071/environmentnotavailableexception-when-using-iworkflowlistener<p>Hi All,</p> <p>We are trying to detect expired tasks by implementing IWorkflowListener. We have same way to detect newly created task, every thing is working fine with create task listener but we are facing environment not available with expired task listener (both listeners are accessing the Ivy environment).</p> <p>We detects newly created task by checking status WorkflowEventKind.EVENT_CREATE_TASK_BY_JOINED_TASKS and expired task is WorkflowEventKind.EVENT_CHANGE_TASK_TIMEOUT_TIMESTAMP.</p> <p>My questions are:</p> <p>What is the different of those states (WorkflowEventKind) when it's fired? Is there any way to access Ivy environment outside request? for example ivy global variable?</p> <p>Thanks, Lam Nguyen</p>Lam NguyenMon, 22 Jan 2018 05:12:12 -0500https://answers.axonivy.com/questions/3071/environmentnotavailableexception-when-using-iworkflowlistenertask-stateIvy TaskState change listenerhttps://answers.axonivy.com/questions/3062/ivy-taskstate-change-listener<p>Hi all,</p> <p>In our application, we need to detect when task state is changed. For example when user login to Ivy Admin UI and delete a user, tasks belong to that user will change state to UNASSIGNED.</p> <p>We tried to use IWorkflowListener but it didn’t work .</p> <p>In Ivy, is there any way to listen to this event?</p> <p>Thanks a lot.</p>ToanLCTue, 09 Jan 2018 02:39:17 -0500https://answers.axonivy.com/questions/3062/ivy-taskstate-change-listenertasktask-stateaxonivy6.3When does the state of task change from resumed to suspended?https://answers.axonivy.com/questions/2910/when-does-the-state-of-task-change-from-resumed-to-suspended<p>For example, a user is working on a task and closes the windows, when does the state of task change from resumed to suspended?</p>SupportIvyTeamWed, 11 Oct 2017 10:22:25 -0400https://answers.axonivy.com/questions/2910/when-does-the-state-of-task-change-from-resumed-to-suspendedtasktask-stateDifferent 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