<?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: TimerEntity[XXXXXX] was updated by another transaction concurrently in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/timerentity-xxxxxx-was-updated-by-another-transaction/m-p/136499#M95727</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, what you are asking is to make the firing of the event part of the transaction. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are not using transactional resources this simply cannot be done … &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;One option is to use JMS (which can do JTA) but that is of course a serious heavy weight solution.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jul 2013 13:58:36 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2013-07-09T13:58:36Z</dc:date>
    <item>
      <title>TimerEntity[XXXXXX] was updated by another transaction concurrently</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timerentity-xxxxxx-was-updated-by-another-transaction/m-p/136496#M95724</link>
      <description>Hi,I wrote&amp;nbsp; a process with timer boundary event &amp;amp; a service task. For every 2 minutes serviceTask will be called and send some notifications(linux box#1 where jobExecutorActivate = true) I wrote a service to complete the human task( linux box#2 - where jobExecutorActivate = false). Occassionally</description>
      <pubDate>Thu, 04 Jul 2013 12:35:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timerentity-xxxxxx-was-updated-by-another-transaction/m-p/136496#M95724</guid>
      <dc:creator>swamy2156</dc:creator>
      <dc:date>2013-07-04T12:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: TimerEntity[XXXXXX] was updated by another transaction concurrently</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timerentity-xxxxxx-was-updated-by-another-transaction/m-p/136497#M95725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's perfectly normal, that exception. It means the optimistic locking stategy works, as the transaction the "job execution" was in will not be committed due to the fact that the user-task is completed and the timer doesn't exist anymore (that's what I'm guessing).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Its a specific Activiti exception-type (ActivitiOptimisticLockException) and can occur in situations you're describing (simultaneous modification of timer state). The transaction that is first, wins. The other is rolled back…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 07:00:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timerentity-xxxxxx-was-updated-by-another-transaction/m-p/136497#M95725</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-07-05T07:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: TimerEntity[XXXXXX] was updated by another transaction concurrently</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timerentity-xxxxxx-was-updated-by-another-transaction/m-p/136498#M95726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply Fred!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my case what happens is, update task service completes the task and taskListener publishes that complete event. Because of OptimisticLockException, transaction get rollback but not able to control event publish thing. Because by the time process reaches OptimisticLockException, taskEvent fired and after that transaction rolled back which is not appropriate I think.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead of other transaction rollback, can we do complete the transactions one after another? or Is it possible to handle taskEvent firing when OptimisticLockException occurred.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Swamy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 11:17:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timerentity-xxxxxx-was-updated-by-another-transaction/m-p/136498#M95726</guid>
      <dc:creator>swamy2156</dc:creator>
      <dc:date>2013-07-09T11:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: TimerEntity[XXXXXX] was updated by another transaction concurrently</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timerentity-xxxxxx-was-updated-by-another-transaction/m-p/136499#M95727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, what you are asking is to make the firing of the event part of the transaction. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are not using transactional resources this simply cannot be done … &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;One option is to use JMS (which can do JTA) but that is of course a serious heavy weight solution.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 13:58:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timerentity-xxxxxx-was-updated-by-another-transaction/m-p/136499#M95727</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-07-09T13:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: TimerEntity[XXXXXX] was updated by another transaction concurrently</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timerentity-xxxxxx-was-updated-by-another-transaction/m-p/136500#M95728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you're using spring, you can always add a TransactionSynchronisationAdapter to the transaction-context instead of directly "publishing" the event. When the adapter's callback-method is called when transaction is committed, you can publish the event from within the TransactionSynchronisationAdapter. Offcourse, if something goes wrong here, the process-state is already committed and it seems that noting has gone wrong on the activiti-side. This is a path you should cover yourself…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 07:14:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timerentity-xxxxxx-was-updated-by-another-transaction/m-p/136500#M95728</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-07-10T07:14:10Z</dc:date>
    </item>
  </channel>
</rss>

