<?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 Async service tasks fails to update status in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/async-service-tasks-fails-to-update-status/m-p/158804#M112879</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I executed an activiti model, made up of 13 asynchronous non exclusive java service tasks, all in parallel to one another, and all linked to a single start and end event. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When the workflow starts, all the 13 service tasks gets instantiated, and the task execution completes successfully for all 13 on the back end (python scripts which produces 13 different images) , however when checked the activiti database, it shows only 5 of them were completed successfully and the rest of 8 scheduled for retry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When retry happens all 8 remaining tasks are&amp;nbsp; re-executed successfully in the back end (produced 8 images), but again activiti counts only 4 of them completed successfully and the rest&amp;nbsp; 4 scheduled for retry. The final retry executes all four both in the front and back end. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;there is a total of 25 executions instead of 13.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I cannot explain this behavior of activiti, such as even though the java delegate class executes successfully in parallel, its not registering the exit of some of the async-non-exclusive tasks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help me out in understanding this strange behavior.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Apr 2014 22:40:39 GMT</pubDate>
    <dc:creator>paulfrancis</dc:creator>
    <dc:date>2014-04-24T22:40:39Z</dc:date>
    <item>
      <title>Async service tasks fails to update status</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/async-service-tasks-fails-to-update-status/m-p/158804#M112879</link>
      <description>I executed an activiti model, made up of 13 asynchronous non exclusive java service tasks, all in parallel to one another, and all linked to a single start and end event. When the workflow starts, all the 13 service tasks gets instantiated, and the task execution completes successfully for all 13 on</description>
      <pubDate>Thu, 24 Apr 2014 22:40:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/async-service-tasks-fails-to-update-status/m-p/158804#M112879</guid>
      <dc:creator>paulfrancis</dc:creator>
      <dc:date>2014-04-24T22:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Async service tasks fails to update status</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/async-service-tasks-fails-to-update-status/m-p/158805#M112880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What was the reason for retry?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(Any stack trace?)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2014 05:27:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/async-service-tasks-fails-to-update-status/m-p/158805#M112880</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2014-04-25T05:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Async service tasks fails to update status</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/async-service-tasks-fails-to-update-status/m-p/158806#M112881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This the message in catalina.out&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Exception in thread "pool-2-thread-4" org.activiti.engine.ActivitiOptimisticLockingException: ProcessInstance[1627] was updated by another transaction concurrently&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.db.DbSqlSession.flushUpdates(DbSqlSession.java:562)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.db.DbSqlSession.flush(DbSqlSession.java:444)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.interceptor.CommandContext.flushSessions(CommandContext.java:170)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.interceptor.CommandContext.close(CommandContext.java:117)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:66)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:47)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:45)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:31)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:40)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:35)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.jobexecutor.ExecuteJobsRunnable.run(ExecuteJobsRunnable.java:46)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at java.lang.Thread.run(Thread.java:744)&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2014 23:28:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/async-service-tasks-fails-to-update-status/m-p/158806#M112881</guid>
      <dc:creator>paulfrancis</dc:creator>
      <dc:date>2014-04-25T23:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Async service tasks fails to update status</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/async-service-tasks-fails-to-update-status/m-p/158807#M112882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Paul,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems that process instance is updated concurrently from different threads. How to avoid it: you can try to set org.activiti.engine.impl.interceptor.CommandConfig#contextReusePossible to false. I am not sure - I did not test it but may be it could help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If not prepare jUnit test for it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 06:53:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/async-service-tasks-fails-to-update-status/m-p/158807#M112882</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2014-04-28T06:53:46Z</dc:date>
    </item>
  </channel>
</rss>

