<?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 Transactions - autocommit - atomicity in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/transactions-autocommit-atomicity/m-p/160903#M114858</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Creating this new topic as a follow up to the topic - &lt;/SPAN&gt;&lt;A href="http://forums.activiti.org/content/any-way-get-reference-created-task-task-create-listener" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/content/any-way-get-reference-created-task-task-create-listener&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have following two major actions in my test case which executes a simple process that has only one user task between start and end nodes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Start a process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Using TaskService execute a TaskQuery to get the user task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Do some application specific thing not related to Activiti.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;null&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; as result from TaskQuery. And that seems to be because the Activiti data created by starting the process has not been committed to the database (as stated in the referenced topic). I have set autocommit to true on my datasource configuration. I cannot set it to true because I need to make sure all the three logical steps in my application, as mentioned above, are running in one transaction. Either everything should be committed or nothing should be committed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How are folks resolving such atomicity need in using Activiti? Is there some setting either for Activiti or for iBatis/MyBatis which will/can make this work. Or is there a specific ProcessEngine configuration to use for such scenarios?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know the out-of-box test cases that come with Activiti run sucessfully. But I am assuming that's probably only because by default the datasource setting for autocommit on database connections is true.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried various different transaction managers and various different Activiti ProcessConfigurations.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any and all pointers will be highly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Sep 2013 21:04:34 GMT</pubDate>
    <dc:creator>neville_sequeir</dc:creator>
    <dc:date>2013-09-10T21:04:34Z</dc:date>
    <item>
      <title>Transactions - autocommit - atomicity</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/transactions-autocommit-atomicity/m-p/160903#M114858</link>
      <description>Creating this new topic as a follow up to the topic - http://forums.activiti.org/content/any-way-get-reference-created-task-task-create-listenerI have following two major actions in my test case which executes a simple process that has only one user task between start and end nodes.1. Start a proces</description>
      <pubDate>Tue, 10 Sep 2013 21:04:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/transactions-autocommit-atomicity/m-p/160903#M114858</guid>
      <dc:creator>neville_sequeir</dc:creator>
      <dc:date>2013-09-10T21:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Transactions - autocommit - atomicity</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/transactions-autocommit-atomicity/m-p/160904#M114859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I meant to say, I have set autocommit to false.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2013 21:09:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/transactions-autocommit-atomicity/m-p/160904#M114859</guid>
      <dc:creator>neville_sequeir</dc:creator>
      <dc:date>2013-09-10T21:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: Transactions - autocommit - atomicity</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/transactions-autocommit-atomicity/m-p/160905#M114860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have to repeat myself, you don't have to do a Task query to get the task. The DelegateTask IS the Task you would get back from the Task query already. So why is this DelegateTask object not enough for you to work with?&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>Thu, 12 Sep 2013 07:11:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/transactions-autocommit-atomicity/m-p/160905#M114860</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-09-12T07:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Transactions - autocommit - atomicity</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/transactions-autocommit-atomicity/m-p/160906#M114861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am not talking about the listener any more. That's is why started a separated topic. I think for now it suffices to address this third topic because I think that is the root cause of my issues - &lt;/SPAN&gt;&lt;A href="http://forums.activiti.org/content/spring-jpatransactionmanager-not-saving-activiti-entities-db" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/content/spring-jpatransactionmanager-not-saving-activiti-entities-db&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2013 22:19:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/transactions-autocommit-atomicity/m-p/160906#M114861</guid>
      <dc:creator>neville_sequeir</dc:creator>
      <dc:date>2013-09-12T22:19:14Z</dc:date>
    </item>
  </channel>
</rss>

