<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Auto deployment with duplicateFilter check does not work with expression based timer start event in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/auto-deployment-with-duplicatefilter-check-does-not-work-with/m-p/194030#M147160</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Tijs,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;whenever the value within the database has been changed, which is returned by the getTimeCycle() method, the whole application server is restarted. However during this restart, the getTimeCycle() of the start timer event is not called again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Apparently, it is only called when the process model is deployed, not when the engine is started. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What do you think? Should a timer start event expression be evaluated every time the process engine starts or only at deployment? When designing the processes, we thought the former was the case, but it seems the latter is.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Heiko&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 22 Nov 2014 15:41:10 GMT</pubDate>
    <dc:creator>bardioc</dc:creator>
    <dc:date>2014-11-22T15:41:10Z</dc:date>
    <item>
      <title>Auto deployment with duplicateFilter check does not work with expression based timer start event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/auto-deployment-with-duplicatefilter-check-does-not-work-with/m-p/194028#M147158</link>
      <description>Hello,I've come across an issue with process models having a time based start event with an expression and which are deployed via auto deployment feature. The DeployCmd.java uses 'deploymentsDiffer' to determine differences and decides whether a new deployment is necessary or not. However, if one ha</description>
      <pubDate>Fri, 21 Nov 2014 10:47:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/auto-deployment-with-duplicatefilter-check-does-not-work-with/m-p/194028#M147158</guid>
      <dc:creator>bardioc</dc:creator>
      <dc:date>2014-11-21T10:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Auto deployment with duplicateFilter check does not work with expression based timer start event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/auto-deployment-with-duplicatefilter-check-does-not-work-with/m-p/194029#M147159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Heiko,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Interesting point. Are you restarting the Engine? Wouldn't that mean that the "old" process definition gets the new value of the #{myProcess.timeCycle} expression?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 15:41:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/auto-deployment-with-duplicatefilter-check-does-not-work-with/m-p/194029#M147159</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2014-11-21T15:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Auto deployment with duplicateFilter check does not work with expression based timer start event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/auto-deployment-with-duplicatefilter-check-does-not-work-with/m-p/194030#M147160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Tijs,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;whenever the value within the database has been changed, which is returned by the getTimeCycle() method, the whole application server is restarted. However during this restart, the getTimeCycle() of the start timer event is not called again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Apparently, it is only called when the process model is deployed, not when the engine is started. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What do you think? Should a timer start event expression be evaluated every time the process engine starts or only at deployment? When designing the processes, we thought the former was the case, but it seems the latter is.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Heiko&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Nov 2014 15:41:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/auto-deployment-with-duplicatefilter-check-does-not-work-with/m-p/194030#M147160</guid>
      <dc:creator>bardioc</dc:creator>
      <dc:date>2014-11-22T15:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Auto deployment with duplicateFilter check does not work with expression based timer start event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/auto-deployment-with-duplicatefilter-check-does-not-work-with/m-p/194031#M147161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Heiko,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When the application server is restarted the BPMN XML is read again and all expressions are read again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But this is a specific case because there's a timer job that's already created for the first deployment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be possible to write some custom logic to change the timer job based on the new value in the database. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Nov 2014 19:41:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/auto-deployment-with-duplicatefilter-check-does-not-work-with/m-p/194031#M147161</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2014-11-23T19:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Auto deployment with duplicateFilter check does not work with expression based timer start event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/auto-deployment-with-duplicatefilter-check-does-not-work-with/m-p/194032#M147162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Tijs,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think I don't fully understand what you wrote …&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; When the application server is restarted the BPMN XML is read again and all expressions are read again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As far as I found out is, that the BPMN XML may be read again, and the expressions may be read again too, but according to break points we set in our getTimeCycle()-method, it is not called again, thus the job entry in ACT_RU_JOB keeps the old information. It is only called, when the process model somehow changes (because of the auto deployment feature …) More importantly, even after the timer fired, the new value is not used. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think this is something nobody would expect. I for myself would expect, that in case a timer start event is using an expression, this expression is evaluated at least at start of the process engine. It would be a good feature to have a runtime service to update the timer start events programmatically too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nevertheless, I need a solution to make sure, that all timer start events using expressions are updated. Can you lead me to an example of such custom logic you are referring to?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Heiko&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Nov 2014 21:57:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/auto-deployment-with-duplicatefilter-check-does-not-work-with/m-p/194032#M147162</guid>
      <dc:creator>bardioc</dc:creator>
      <dc:date>2014-11-23T21:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Auto deployment with duplicateFilter check does not work with expression based timer start event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/auto-deployment-with-duplicatefilter-check-does-not-work-with/m-p/194033#M147163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Heiko,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I mean is that the start event timer is a specific case, because when the process definition is deployed for the first time it will create a job in the Activiti database with the expression value at the point in time. Then when you restart the Engine, the BPMN XML is parsed again, but due to the duplication filter, no new timer job will be inserted into the database. And this behaviour is correct because otherwise you would have two timer jobs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The behaviour you are looking for is that the timer job is updated with the new expression value when the Engine is restarted. So you could write logic to update the timer job yourself. I don't have an example for this custom logic, it's the first time I encountered such a use case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2014 09:30:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/auto-deployment-with-duplicatefilter-check-does-not-work-with/m-p/194033#M147163</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2014-11-25T09:30:59Z</dc:date>
    </item>
  </channel>
</rss>

