<?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: Activiti listener db updates - are they atomic ? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/activiti-listener-db-updates-are-they-atomic/m-p/244367#M197497</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was able to get to understand the problem. I am using Spring boot and I have defined the JPATransactionManager for my database and it is being used by Activiti. Hence if there is any exception in event listener calling my code, the db rollbacks for my table are done. I have defined the bean for datasource defining the Activiti database as primary. But I am not sure how Activiti is using the TransactionManager of my database and working properly. The Spring documentation clearly mentions that if no transaction manager is created, it will create a default transactionmanager. But if any transaction manager is created, it will use it. Using the transaction manager of my database, Activiti is working fine. I am trying to understand this piece here. We are deploying to production and wanted to make sure I understand it properly. Can anybody shed some light here ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Jun 2016 03:37:59 GMT</pubDate>
    <dc:creator>davanna</dc:creator>
    <dc:date>2016-06-17T03:37:59Z</dc:date>
    <item>
      <title>Activiti listener db updates - are they atomic ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-listener-db-updates-are-they-atomic/m-p/244366#M197496</link>
      <description>Hi Members,I have written event listeners for events - PROCESS_STARTED and TASK_CREATED. In the event listener I am calling my custom db inserts (these are not activiti tables) for PROCESS_STARTED and TASK_CREATED. For PROCESS_STARTED, it inserts record into 'workflow' table and for TASK_CREATED, it</description>
      <pubDate>Thu, 16 Jun 2016 17:44:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-listener-db-updates-are-they-atomic/m-p/244366#M197496</guid>
      <dc:creator>davanna</dc:creator>
      <dc:date>2016-06-16T17:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti listener db updates - are they atomic ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-listener-db-updates-are-they-atomic/m-p/244367#M197497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was able to get to understand the problem. I am using Spring boot and I have defined the JPATransactionManager for my database and it is being used by Activiti. Hence if there is any exception in event listener calling my code, the db rollbacks for my table are done. I have defined the bean for datasource defining the Activiti database as primary. But I am not sure how Activiti is using the TransactionManager of my database and working properly. The Spring documentation clearly mentions that if no transaction manager is created, it will create a default transactionmanager. But if any transaction manager is created, it will use it. Using the transaction manager of my database, Activiti is working fine. I am trying to understand this piece here. We are deploying to production and wanted to make sure I understand it properly. Can anybody shed some light here ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2016 03:37:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-listener-db-updates-are-they-atomic/m-p/244367#M197497</guid>
      <dc:creator>davanna</dc:creator>
      <dc:date>2016-06-17T03:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti listener db updates - are they atomic ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-listener-db-updates-are-they-atomic/m-p/244368#M197498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You inject the transaction manager into the Activiti process engine configuration. Activiti and the custom database calls will be done in the same transaction in that case (if they are the same datasource, with multiple you need XA datasources).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 09:17:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-listener-db-updates-are-they-atomic/m-p/244368#M197498</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-06-22T09:17:24Z</dc:date>
    </item>
  </channel>
</rss>

