<?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 Timers not working with unit tests on 5.12 in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/timers-not-working-with-unit-tests-on-5-12/m-p/131788#M92611</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everybody,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I created a simple example process with a Timer Start Event set to R1/PT10S.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I modified the activiti.cfg.xml as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;bean id="processEngineConfiguration" class="org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;property name="databaseSchemaUpdate" value="true"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;property name="jobExecutorActivate" value="true" /&amp;gt;&lt;BR /&gt;&amp;lt;/bean&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But it doesn't start. And also other timers are not working when testing processes with unit tests. In activiti 5.9 they was working fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I'm doing wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Apr 2013 12:37:58 GMT</pubDate>
    <dc:creator>zidia</dc:creator>
    <dc:date>2013-04-08T12:37:58Z</dc:date>
    <item>
      <title>Timers not working with unit tests on 5.12</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timers-not-working-with-unit-tests-on-5-12/m-p/131788#M92611</link>
      <description>Hi everybody,I created a simple example process with a Timer Start Event set to R1/PT10S.I modified the activiti.cfg.xml as follows:&amp;lt;bean id="processEngineConfiguration" class="org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;property name="databaseSchemaUpdate" val</description>
      <pubDate>Mon, 08 Apr 2013 12:37:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timers-not-working-with-unit-tests-on-5-12/m-p/131788#M92611</guid>
      <dc:creator>zidia</dc:creator>
      <dc:date>2013-04-08T12:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Timers not working with unit tests on 5.12</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timers-not-working-with-unit-tests-on-5-12/m-p/131789#M92612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's a bit difficult to tell if you don't include your unit test code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In our Activiti test suite we're testing timers a lot, so it's still working.&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, 09 Apr 2013 15:04:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timers-not-working-with-unit-tests-on-5-12/m-p/131789#M92612</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-04-09T15:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: Timers not working with unit tests on 5.12</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timers-not-working-with-unit-tests-on-5-12/m-p/131790#M92613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Tijs,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I was testing the processes using a Java main class instead of unit tests and in particular using these lines of code to create the process engine, deploy it and run it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;java&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RepositoryService repositoryService = processEngine.getRepositoryService();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;repositoryService.createDeployment().addInputStream("myProcess.bpmn20.xml",new FileInputStream(filename)).deploy();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RuntimeService runtimeService = processEngine.getRuntimeService();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Map&amp;lt;String, Object&amp;gt; variableMap = new HashMap&amp;lt;String, Object&amp;gt;();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;variableMap.put("name", "Activiti");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("myProcess", variableMap);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/java&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This was working fine with 5.9 since (as I understood) the ProcessEngine was using the external running Activiti instance and external DB by default. By external I mean the one started by the ant script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tested now the process with automatically generated unit tests (after changing the activiti.cfg.xml file and running the H2 database) and the timers are working properly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;jovan&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 08:59:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timers-not-working-with-unit-tests-on-5-12/m-p/131790#M92613</guid>
      <dc:creator>zidia</dc:creator>
      <dc:date>2013-04-17T08:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Timers not working with unit tests on 5.12</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timers-not-working-with-unit-tests-on-5-12/m-p/131791#M92614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Probably the default process engine doesn't have the job executor enabled anymore.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2013 11:22:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timers-not-working-with-unit-tests-on-5-12/m-p/131791#M92614</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-04-18T11:22:53Z</dc:date>
    </item>
  </channel>
</rss>

