<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Ivy WorkflowSystemEvent was not fired when session timeout?</title><link>https://answers.axonivy.com/questions/3776/ivy-workflowsystemevent-was-not-fired-when-session-timeout</link><description>&lt;p&gt;Hi IvyTeam,&lt;/p&gt;
&lt;p&gt;We are working on project that listen on WorkflowSystemEvent to know when the Ivy Task was created/changed. Everything working fine if we are actively change the Ivy Task, but when the user are opening the task and then his session timeout, Ivy is able to reset the Task state to SUSPENDED, but it doesn't fire the WorkflowSystemEvent, cause our application don't know the Ivy Task had changed its state to SUSPENDED.&lt;/p&gt;
&lt;p&gt;We are working on Axon.ivy 7.0.8&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/3776/ivy-workflowsystemevent-was-not-fired-when-session-timeout" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 15 May 2019 10:30:11 -0400</lastBuildDate><item><title>Comment by vinh_ on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/3776/ivy-workflowsystemevent-was-not-fired-when-session-timeout#3799</link><description>&lt;p&gt;You are correct about the EnvironmentNotAvaiableException we are using BusinessRepo in the Listener, it seem out of scope of the dependency injection, in Axon.ivy 7.0.8, the error is not show in the Runtime Log, but in the Error windows. The good news is when we upgrade to 7.0.11, the issue has gone.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">vinh_</dc:creator><pubDate>Wed, 15 May 2019 10:30:11 -0400</pubDate><guid>https://answers.axonivy.com/questions/3776/ivy-workflowsystemevent-was-not-fired-when-session-timeout#3799</guid></item><item><title>Comment by Reguel Wermelinger on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/3776/ivy-workflowsystemevent-was-not-fired-when-session-timeout#3785</link><description>&lt;p&gt;It could be that your listener registration is done after states have already been reseted. Can you share how you register for the event? Via programmed start event bean or with an IServerExtension?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Thu, 25 Apr 2019 03:22:06 -0400</pubDate><guid>https://answers.axonivy.com/questions/3776/ivy-workflowsystemevent-was-not-fired-when-session-timeout#3785</guid></item><item><title>Comment by vinh_ on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/3776/ivy-workflowsystemevent-was-not-fired-when-session-timeout#3783</link><description>&lt;p&gt;I just found a case may cause this issue, when I restart the Ivy Engine, is the event also fired?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">vinh_</dc:creator><pubDate>Wed, 24 Apr 2019 23:13:39 -0400</pubDate><guid>https://answers.axonivy.com/questions/3776/ivy-workflowsystemevent-was-not-fired-when-session-timeout#3783</guid></item><item><title>Comment by Reguel Wermelinger on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/3776/ivy-workflowsystemevent-was-not-fired-when-session-timeout#3782</link><description>&lt;p&gt;I tested it with 7.3.1 ... but I do not expect a significant change in this area between 7.0.X and 7.3&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Wed, 24 Apr 2019 10:41:40 -0400</pubDate><guid>https://answers.axonivy.com/questions/3776/ivy-workflowsystemevent-was-not-fired-when-session-timeout#3782</guid></item><item><title>Comment by vinh_ on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/3776/ivy-workflowsystemevent-was-not-fired-when-session-timeout#3781</link><description>&lt;p&gt;I will check it again, I could manage the &lt;code&gt;EnvironmentNotAvailableException&lt;/code&gt;, but in my case the Event was not fired at all. Did you check with Ivy Engine 7.0.8 Linux version.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">vinh_</dc:creator><pubDate>Tue, 23 Apr 2019 23:34:59 -0400</pubDate><guid>https://answers.axonivy.com/questions/3776/ivy-workflowsystemevent-was-not-fired-when-session-timeout#3781</guid></item><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/3776/ivy-workflowsystemevent-was-not-fired-when-session-timeout/3780</link><description>&lt;p&gt;I can reproduce that the task state event is fired also on session timeouts. However, I see that in this case chances are pretty high that you  face an &lt;code&gt;EnvironmentNotAvailableException&lt;/code&gt; as many ivy APIs rely on a running Session, ProcessModelVersion and Task. Could it be that you have the same exceptions in your logs and therefore your listener code was not really executed?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Tue, 23 Apr 2019 03:57:53 -0400</pubDate><guid>https://answers.axonivy.com/questions/3776/ivy-workflowsystemevent-was-not-fired-when-session-timeout/3780</guid></item></channel></rss>