<?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: Update done by one task into DB is not getting reflected by second task when multiple tasks are triggered at once in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/update-done-by-one-task-into-db-is-not-getting-reflected-by/m-p/229359#M182489</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I too face the similar problem!! &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. I have a workflow as follows. START-&amp;gt;TASK-&amp;gt;SERVICETASK-&amp;gt;END&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. I have a counter(incremented based on history variables of completed instances + current execution data). &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. From My UI, I selected 2 tasks and completed them simultaneously in multi-threaded environment. 2 tasks completed concurrently in 2 seperate threads and both executions sits in ServiceTask. TASK1 counter variable calculated correctly. But, TASK2 counter not considering TASK1 refreshed db data from database.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to solve this concurrency problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks,&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>Thu, 19 May 2016 14:07:51 GMT</pubDate>
    <dc:creator>swamy2156</dc:creator>
    <dc:date>2016-05-19T14:07:51Z</dc:date>
    <item>
      <title>Update done by one task into DB is not getting reflected by second task when multiple tasks are triggered at once</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/update-done-by-one-task-into-db-is-not-getting-reflected-by/m-p/229357#M182487</link>
      <description>Hi,I am claiming two different tasks in UI and when submitting it, it is entering a service task. Below are the sequence of actions taking place.Task1:  1. Enters the service task 2. Fetches count of records matching some condition from DB 3. Performs some logic 4. Updates the count to DB at the end</description>
      <pubDate>Wed, 18 May 2016 13:39:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/update-done-by-one-task-into-db-is-not-getting-reflected-by/m-p/229357#M182487</guid>
      <dc:creator>tkarthik26</dc:creator>
      <dc:date>2016-05-18T13:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Update done by one task into DB is not getting reflected by second task when multiple tasks are triggered at once</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/update-done-by-one-task-into-db-is-not-getting-reflected-by/m-p/229358#M182488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Make the task async, and the transaction will be committed to the database, thus giving you the latest values in the next talk.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 17:00:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/update-done-by-one-task-into-db-is-not-getting-reflected-by/m-p/229358#M182488</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-05-18T17:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Update done by one task into DB is not getting reflected by second task when multiple tasks are triggered at once</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/update-done-by-one-task-into-db-is-not-getting-reflected-by/m-p/229359#M182489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I too face the similar problem!! &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. I have a workflow as follows. START-&amp;gt;TASK-&amp;gt;SERVICETASK-&amp;gt;END&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. I have a counter(incremented based on history variables of completed instances + current execution data). &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. From My UI, I selected 2 tasks and completed them simultaneously in multi-threaded environment. 2 tasks completed concurrently in 2 seperate threads and both executions sits in ServiceTask. TASK1 counter variable calculated correctly. But, TASK2 counter not considering TASK1 refreshed db data from database.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to solve this concurrency problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks,&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>Thu, 19 May 2016 14:07:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/update-done-by-one-task-into-db-is-not-getting-reflected-by/m-p/229359#M182489</guid>
      <dc:creator>swamy2156</dc:creator>
      <dc:date>2016-05-19T14:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Update done by one task into DB is not getting reflected by second task when multiple tasks are triggered at once</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/update-done-by-one-task-into-db-is-not-getting-reflected-by/m-p/229360#M182490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not sure I'm following this? How does these two threads relate to one process instance? They both complete the task? (which should not be possible)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 08:23:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/update-done-by-one-task-into-db-is-not-getting-reflected-by/m-p/229360#M182490</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-05-31T08:23:20Z</dc:date>
    </item>
  </channel>
</rss>

