<?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: Newbie. Activiti Clock Configuration in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/newbie-activiti-clock-configuration/m-p/183285#M136415</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;gt; This sets clock to current system clock, but I have to do this every day, otherwise activiti clock falls back a day.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This method is ment for testing purposes, not for real processes!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We don't do anything than to delegate to the JDK or the database …&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Mar 2015 07:50:29 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2015-03-31T07:50:29Z</dc:date>
    <item>
      <title>Newbie. Activiti Clock Configuration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/newbie-activiti-clock-configuration/m-p/183280#M136410</link>
      <description>Hi all,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; While using activiti-explorer 5.16.3 with tomcat7 on postgres-9.1 as DB and Ubuntu 12.04 machine, I noticed something weird. The moment I deploy a process definition, the message on activiti-explorer UI says "Deployed one day ago". Logs in catalina.out have correct system time which is c</description>
      <pubDate>Fri, 20 Mar 2015 02:26:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/newbie-activiti-clock-configuration/m-p/183280#M136410</guid>
      <dc:creator>sankalpn</dc:creator>
      <dc:date>2015-03-20T02:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie. Activiti Clock Configuration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/newbie-activiti-clock-configuration/m-p/183281#M136411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;gt; Apparently activiti-explorer clock i&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The activiti explorer 'clock' simply uses new Date()….&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What happens if you simply create a simple Java class that prints out what new Date() does?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 13:19:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/newbie-activiti-clock-configuration/m-p/183281#M136411</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-03-24T13:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie. Activiti Clock Configuration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/newbie-activiti-clock-configuration/m-p/183282#M136412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The date is still behind system date, by one day first, and then keeps falling back a day every day.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;DelegateExecution&amp;gt;.getEngineServices().getProcessEngineConfiguration().getClock().setCurrentCalendar(Calendar.getInstance());&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This sets clock to current system clock, but I have to do this every day, otherwise activiti clock falls back a day.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Again, it still doesn't solve the problem of having to manually execute async service task or TimerIntermediateCatchEvent (from Manage -&amp;gt; Jobs in activiti-explorer).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks and Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sankalp&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 18:16:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/newbie-activiti-clock-configuration/m-p/183282#M136412</guid>
      <dc:creator>sankalpn</dc:creator>
      <dc:date>2015-03-24T18:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie. Activiti Clock Configuration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/newbie-activiti-clock-configuration/m-p/183283#M136413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;gt; What happens if you simply create a simple Java class that prints out what new Date() does?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This prints the current system date and time, which is correct.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 02:01:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/newbie-activiti-clock-configuration/m-p/183283#M136413</guid>
      <dc:creator>sankalpn</dc:creator>
      <dc:date>2015-03-25T02:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie. Activiti Clock Configuration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/newbie-activiti-clock-configuration/m-p/183284#M136414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I performed a bunch of steps which fixed this problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) I replaced DefaultClockImpl.class in activiti-explorer 5.16.3 war with class file from latest master build&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) In datasource bean, set defaultAutoCommit to false&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) Restarted postgres&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Later, as and if time permits, I'll try to figure out which step(s) exactly fixed this. But, I suspect this might be solve the problem in this thread as well:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.activiti.org/content/boundary-event-subprocess-not-firing" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/content/boundary-event-subprocess-not-firing&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 20:12:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/newbie-activiti-clock-configuration/m-p/183284#M136414</guid>
      <dc:creator>sankalpn</dc:creator>
      <dc:date>2015-03-25T20:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie. Activiti Clock Configuration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/newbie-activiti-clock-configuration/m-p/183285#M136415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;gt; This sets clock to current system clock, but I have to do this every day, otherwise activiti clock falls back a day.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This method is ment for testing purposes, not for real processes!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We don't do anything than to delegate to the JDK or the database …&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 07:50:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/newbie-activiti-clock-configuration/m-p/183285#M136415</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-03-31T07:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie. Activiti Clock Configuration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/newbie-activiti-clock-configuration/m-p/183286#M136416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;gt; We don't do anything than to delegate to the JDK or the database …&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for this clarification. I have removed setCurrentCalendar from my service task. Plus, I am using original activiti-explorer 5.16.3. I still don't know how the timer discord sets in, but activiti clock syncs with system clock after activiti-explorer and postgres restart. I will investigate further.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 18:29:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/newbie-activiti-clock-configuration/m-p/183286#M136416</guid>
      <dc:creator>sankalpn</dc:creator>
      <dc:date>2015-04-01T18:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie. Activiti Clock Configuration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/newbie-activiti-clock-configuration/m-p/183287#M136417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi have the same issue that i haven't resolved with the advices found here. Any new suggestions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;p.s.: i use the H2 database. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Sep 2015 15:00:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/newbie-activiti-clock-configuration/m-p/183287#M136417</guid>
      <dc:creator>car82</dc:creator>
      <dc:date>2015-09-13T15:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie. Activiti Clock Configuration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/newbie-activiti-clock-configuration/m-p/183288#M136418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;car82, what Activiti version are you using ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;this issue could be reproduced only in activiti-explorer or also the engine is affected in your case?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 11:27:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/newbie-activiti-clock-configuration/m-p/183288#M136418</guid>
      <dc:creator>vasile_dirla</dc:creator>
      <dc:date>2015-09-14T11:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie. Activiti Clock Configuration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/newbie-activiti-clock-configuration/m-p/183289#M136419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I switched to using activiti as embedded workflow engine and used spring configuration. Haven't faced the issue since. I use postgres in production and H2 in unit tests. Make sure your task exector is enabled.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 14:04:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/newbie-activiti-clock-configuration/m-p/183289#M136419</guid>
      <dc:creator>sankalpn</dc:creator>
      <dc:date>2015-09-14T14:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie. Activiti Clock Configuration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/newbie-activiti-clock-configuration/m-p/183290#M136420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi i am using Activiti 5.16.3 and the issue affect only actviti explorer. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 14:15:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/newbie-activiti-clock-configuration/m-p/183290#M136420</guid>
      <dc:creator>car82</dc:creator>
      <dc:date>2015-09-17T14:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie. Activiti Clock Configuration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/newbie-activiti-clock-configuration/m-p/183291#M136421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;org.activiti.engine.runtime.Clock&lt;/CODE&gt;&lt;SPAN&gt; is my baby. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; So I should be responsible for its failures. I created this interface to be able to control time in which engine lives.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sankalp problem is caused by &lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;@Override&lt;BR /&gt;&amp;nbsp; public void setCurrentCalendar(Calendar currentTime) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CURRENT_TIME = currentTime;&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&lt;/CODE&gt;&lt;SPAN&gt;The problem is when &lt;/SPAN&gt;&lt;CODE&gt;CURRENT_TIME&lt;/CODE&gt;&lt;SPAN&gt; is set real (new Date()) time is not used any more. Any set method on the clock is used to control time. It is used for instance during the simulations to control virtual time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regarding car82 problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you describe it more? (jUnit test would be the best.:-) ).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you use any set clock method?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 06:49:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/newbie-activiti-clock-configuration/m-p/183291#M136421</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2015-09-22T06:49:07Z</dc:date>
    </item>
  </channel>
</rss>

