<?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: Troubles with remove unnecessary operations while flush in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/troubles-with-remove-unnecessary-operations-while-flush/m-p/96500#M66313</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I also have an issue where in a certain scenario, I have a create task listener that tries to immediately complete the task.&amp;nbsp; The call to removeUnnecessaryOperations does not do the task insert, and then the identity links which were not removed create a foreign key error.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 May 2012 13:25:59 GMT</pubDate>
    <dc:creator>ptrepag</dc:creator>
    <dc:date>2012-05-01T13:25:59Z</dc:date>
    <item>
      <title>Troubles with remove unnecessary operations while flush</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/troubles-with-remove-unnecessary-operations-while-flush/m-p/96499#M66312</link>
      <description>Hello.In my case I have business process that has callActivity. In some way subrocess ends in transaction where it was created. And when activiti flush transaction I see errors in database (incorrect foreign keys). That occurs because DbSqlSession.flushTransaction() calls removeUnnecessaryOperations</description>
      <pubDate>Tue, 07 Feb 2012 15:36:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/troubles-with-remove-unnecessary-operations-while-flush/m-p/96499#M66312</guid>
      <dc:creator>dooman</dc:creator>
      <dc:date>2012-02-07T15:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: Troubles with remove unnecessary operations while flush</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/troubles-with-remove-unnecessary-operations-while-flush/m-p/96500#M66313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I also have an issue where in a certain scenario, I have a create task listener that tries to immediately complete the task.&amp;nbsp; The call to removeUnnecessaryOperations does not do the task insert, and then the identity links which were not removed create a foreign key error.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2012 13:25:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/troubles-with-remove-unnecessary-operations-while-flush/m-p/96500#M66313</guid>
      <dc:creator>ptrepag</dc:creator>
      <dc:date>2012-05-01T13:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Troubles with remove unnecessary operations while flush</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/troubles-with-remove-unnecessary-operations-while-flush/m-p/96501#M66314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I got around my problem by calling flush on dbsqlsession before completing the task.&amp;nbsp; Is it OK to call flush from within a event listener?&amp;nbsp; I looked at the code and all it seems to do is just execute the pending database statements and leave the current transaction alone.&amp;nbsp; With this being the case, I am assuming that flush can safely be called.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2012 13:35:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/troubles-with-remove-unnecessary-operations-while-flush/m-p/96501#M66314</guid>
      <dc:creator>ptrepag</dc:creator>
      <dc:date>2012-05-01T13:35:27Z</dc:date>
    </item>
  </channel>
</rss>

