<?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 Transaction issue call activity in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/transaction-issue-call-activity/m-p/76281#M50284</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm new to activiti development and we have a rather specific issue, therefore I will do my best to explain the situation a little bit:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently we have a correct working activiti process in production, and we are trying to develop a new one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However our new activiti process does not function in the same way as our already deployed production process does.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And we can't define why at the moment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The basic idea of our current situation is that when something goes wrong, we create a record in the database, and we execute a call activiti to a generic sub process. In that generic sub process we verify if in fact a record has been created and we await a manual user action on this created record. This generic sub process (triggered by a call activity) works fine in our working activiti process, but not in the new one we are trying to develop. The problem we have in our new activiti process is that allthough the creation of the record is executed (the dao call), it is not yet persisted in the database. Only at the end of the entire flow all records are inserted and persisted at once. But in our triggered call activiti sub process we assume this record is already created and persisted in the database. I am aware that activity handles it's transactions in a particular way, but since the difference to our working activiti process is not clear to me I created this topic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The only difference between the two is that in our new process we have an extra call activity level, is it possible that that causes transaction issues?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So our question is how activiti manages transactions in combination with call activity's;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and whether it is possible that nesting call activity's can cause different behaviour (whyle we call the same generic sub process using call activity).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To become concrete:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In our working activiti process:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-&amp;gt; start root process&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;try{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; //error occurs&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}catch(){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; //create user ticket&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; customDao.insertSpecificRecord();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;–&amp;gt; call activity1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;—-&amp;gt;&amp;nbsp;&amp;nbsp; In that activiti process we retrieve the created record (that is persisted through the call activity ?)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;———————————————————————&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In our failing activiti process:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-&amp;gt; start root process&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;–&amp;gt; call activity1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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; //error occurs&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }catch(){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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; //create user ticket&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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; customDao.insertSpecificRecord();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;——–&amp;gt; call activity2 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;———-&amp;gt; in this called activiti no ticket is found&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this is somewhat clear, but any help would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Aug 2011 09:31:52 GMT</pubDate>
    <dc:creator>rlefebvre</dc:creator>
    <dc:date>2011-08-30T09:31:52Z</dc:date>
    <item>
      <title>Transaction issue call activity</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/transaction-issue-call-activity/m-p/76281#M50284</link>
      <description>Hello everyone,I'm new to activiti development and we have a rather specific issue, therefore I will do my best to explain the situation a little bit:Currently we have a correct working activiti process in production, and we are trying to develop a new one.However our new activiti process does not f</description>
      <pubDate>Tue, 30 Aug 2011 09:31:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/transaction-issue-call-activity/m-p/76281#M50284</guid>
      <dc:creator>rlefebvre</dc:creator>
      <dc:date>2011-08-30T09:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction issue call activity</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/transaction-issue-call-activity/m-p/76282#M50285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;wrong forum, use the userforum for this&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2011 13:00:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/transaction-issue-call-activity/m-p/76282#M50285</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-08-30T13:00:55Z</dc:date>
    </item>
  </channel>
</rss>

