<?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: Complete task and get next tasks. Transactions and query sync. in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/complete-task-and-get-next-tasks-transactions-and-query-sync/m-p/216302#M169432</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The only situation where I can see that happening is if one of these steps are async.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;An example that demonstrates it would certainly help here. The way you describe your process, if executed all sync, it shouldn't/can't happen.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 May 2016 09:42:56 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2016-05-10T09:42:56Z</dc:date>
    <item>
      <title>Complete task and get next tasks. Transactions and query sync.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/complete-task-and-get-next-tasks-transactions-and-query-sync/m-p/216297#M169427</link>
      <description>Hi. I'm using Activiti 5.19In my code on "logically" completing a task i have some logic of saving data from the form (ui). At the end of the method i call a "task complete" method and then query for all the tasks i have availible next for current user (1 or more). The lines go next to each other: p</description>
      <pubDate>Wed, 27 Apr 2016 09:26:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/complete-task-and-get-next-tasks-transactions-and-query-sync/m-p/216297#M169427</guid>
      <dc:creator>emptyfruit</dc:creator>
      <dc:date>2016-04-27T09:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Complete task and get next tasks. Transactions and query sync.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/complete-task-and-get-next-tasks-transactions-and-query-sync/m-p/216298#M169428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you can start transaction outside of the activiti engine and manage roll back/commit by yourself.&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, 02 May 2016 06:56:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/complete-task-and-get-next-tasks-transactions-and-query-sync/m-p/216298#M169428</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-05-02T06:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Complete task and get next tasks. Transactions and query sync.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/complete-task-and-get-next-tasks-transactions-and-query-sync/m-p/216299#M169429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for your reply. Can you please point me towards how it can be achieved? Currently in our project we just give Activiti a DataSource and Activiti handles all transactions by itself. We're not using Spring. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2016 15:05:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/complete-task-and-get-next-tasks-transactions-and-query-sync/m-p/216299#M169429</guid>
      <dc:creator>emptyfruit</dc:creator>
      <dc:date>2016-05-02T15:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Complete task and get next tasks. Transactions and query sync.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/complete-task-and-get-next-tasks-transactions-and-query-sync/m-p/216300#M169430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;"The issue is that the taskQuery executes faster than complete(taskId) method. "&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure how that can be. By default, everything in Activiti is synchronous.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have async steps that follow after your user task? &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 12:46:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/complete-task-and-get-next-tasks-transactions-and-query-sync/m-p/216300#M169430</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-05-03T12:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: Complete task and get next tasks. Transactions and query sync.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/complete-task-and-get-next-tasks-transactions-and-query-sync/m-p/216301#M169431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I can provide a bigger excerpt of our code, but as i wrote, these 2 lines go one just right after another. This issue happens mainly&amp;nbsp; when a callActivity is involved: there is a parallel gateway after a completed task. One flow goes back to the same task, another creates a subprocess.&amp;nbsp; As a result of the query i want to see both tasks: one of the same process, and the first usertask of the created subprocess. On my local machine the query returns next usertask of the main process, but misses the first usertask of a created subprocess (if queried immediately). On our prod. machine the query returns result list absolutely empty. If i stop in a debugger and execute query manually i can actually see the data being updated in a database: i query first time - empty, wait for a second - query again - full. As a temporary measure we placed a simple wait for 300ms after a &amp;lt;code&amp;gt;.complete()&amp;lt;/code&amp;gt; method. That does the trick, but is far from a normal solution.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 08:36:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/complete-task-and-get-next-tasks-transactions-and-query-sync/m-p/216301#M169431</guid>
      <dc:creator>emptyfruit</dc:creator>
      <dc:date>2016-05-04T08:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Complete task and get next tasks. Transactions and query sync.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/complete-task-and-get-next-tasks-transactions-and-query-sync/m-p/216302#M169432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The only situation where I can see that happening is if one of these steps are async.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;An example that demonstrates it would certainly help here. The way you describe your process, if executed all sync, it shouldn't/can't happen.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2016 09:42:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/complete-task-and-get-next-tasks-transactions-and-query-sync/m-p/216302#M169432</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-05-10T09:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Complete task and get next tasks. Transactions and query sync.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/complete-task-and-get-next-tasks-transactions-and-query-sync/m-p/216303#M169433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much for your help. Indeed, there is been async="true" on a callActivy. A combination of our mistakes got us thinking that the issue could not be in the scheme.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 07:52:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/complete-task-and-get-next-tasks-transactions-and-query-sync/m-p/216303#M169433</guid>
      <dc:creator>emptyfruit</dc:creator>
      <dc:date>2016-05-13T07:52:39Z</dc:date>
    </item>
  </channel>
</rss>

