<?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: Runtime tables are not updated in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/runtime-tables-are-not-updated/m-p/226755#M179885</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I wrote a junit test with the template now and it turned out that just the service tasks aren't stored in the runtime tables. Is this meant to be that way?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm currently only using service tasks and I would like them to get restarted if they haven't finished and my program is interrupted and later restarted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can also upload the test project if you still need it. I'm using the Activiti version 5.19.0.1 and there are no errors in the log file.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Mar 2016 13:01:34 GMT</pubDate>
    <dc:creator>amsel</dc:creator>
    <dc:date>2016-03-10T13:01:34Z</dc:date>
    <item>
      <title>Runtime tables are not updated</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/runtime-tables-are-not-updated/m-p/226753#M179883</link>
      <description>Hi,I'm using activiti with a postgresql database. The deployment of bpmn models works and I can see them in my database, but when I start a process, the act_ru_* tables aren't updated. And if I restart my program the processes aren't resumed. Can you tell me, what I'm doing wrong? This is my activit</description>
      <pubDate>Wed, 09 Mar 2016 10:55:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/runtime-tables-are-not-updated/m-p/226753#M179883</guid>
      <dc:creator>amsel</dc:creator>
      <dc:date>2016-03-09T10:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime tables are not updated</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/runtime-tables-are-not-updated/m-p/226754#M179884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Amsel,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Do you have any errors in the log file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; What's the Activiti version you are using ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if you have a junit test which have such a behaviour would be great to attach it here as a zip.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2016 07:43:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/runtime-tables-are-not-updated/m-p/226754#M179884</guid>
      <dc:creator>vasile_dirla</dc:creator>
      <dc:date>2016-03-10T07:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime tables are not updated</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/runtime-tables-are-not-updated/m-p/226755#M179885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I wrote a junit test with the template now and it turned out that just the service tasks aren't stored in the runtime tables. Is this meant to be that way?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm currently only using service tasks and I would like them to get restarted if they haven't finished and my program is interrupted and later restarted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can also upload the test project if you still need it. I'm using the Activiti version 5.19.0.1 and there are no errors in the log file.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2016 13:01:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/runtime-tables-are-not-updated/m-p/226755#M179885</guid>
      <dc:creator>amsel</dc:creator>
      <dc:date>2016-03-10T13:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime tables are not updated</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/runtime-tables-are-not-updated/m-p/226756#M179886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Amsel,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;jUnit test would help.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 08:28:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/runtime-tables-are-not-updated/m-p/226756#M179886</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-03-11T08:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime tables are not updated</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/runtime-tables-are-not-updated/m-p/226757#M179887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I attached the zip file. I renamed it to *.txt, as I was only allowed to upload *.txt files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The first assertion for the user task passes and the second assertion for the service task fails.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 10:24:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/runtime-tables-are-not-updated/m-p/226757#M179887</guid>
      <dc:creator>amsel</dc:creator>
      <dc:date>2016-03-11T10:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime tables are not updated</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/runtime-tables-are-not-updated/m-p/226758#M179888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Amsel,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your jUnit test makes things much easier to understand and solve.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that information about finished processes is not stored in the runtime tables. You can get this information from the history:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Test&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Deployment(resources = {"org/activiti/test/my-process.bpmn20.xml", "org/activiti/test/my-process-service-task.bpmn20.xml"})&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void test() {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProcessEngines.init();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; final ProcessEngine processEngine = ProcessEngineConfiguration&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .createProcessEngineConfigurationFromResourceDefault()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .setHistory(HistoryLevel.FULL.getKey())&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .buildProcessEngine();&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; long historicProcessInstancesCountBeforeServiceTask = activitiRule.getHistoryService().createHistoricProcessInstanceQuery().count();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new Thread(new Runnable() {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void run() {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; processEngine.getRuntimeService().startProcessInstanceByKey("my-process-service-task");&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }).start();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thread.sleep(20000);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } catch (InterruptedException ex) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Logger.getLogger(MyUnitTest.class.getName()).log(Level.SEVERE, null, ex);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; long historicProcessInstancesCountAfterServiceTask = activitiRule.getHistoryService().createHistoricProcessInstanceQuery().count();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; assertEquals(historicProcessInstancesCountBeforeServiceTask + 1, historicProcessInstancesCountAfterServiceTask);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Further reading &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://activiti.org/userguide/index.html#historyConfig" rel="nofollow noopener noreferrer"&gt;http://activiti.org/userguide/index.html#historyConfig&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;activiti jUnit tests.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another issue is that Java delegate takes sleeps for 10000 - is not finished before the assertion.&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;public class TestServiceTaskWait implements JavaDelegate {&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Override&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void execute(DelegateExecution execution) throws Exception {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thread.sleep(10000000);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;It means that transaction is not committed before process has finished&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://activiti.org/userguide/index.html#bpmnConcurrencyAndTransactions" rel="nofollow noopener noreferrer"&gt;http://activiti.org/userguide/index.html#bpmnConcurrencyAndTransactions&lt;/A&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2016 08:48:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/runtime-tables-are-not-updated/m-p/226758#M179888</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-03-14T08:48:42Z</dc:date>
    </item>
  </channel>
</rss>

