<?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: Competing for tasks in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/competing-for-tasks/m-p/200211#M153341</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Service tasks are outbound, right? You'd need to either be running multiple Activiti servers or put together something for a single Activiti server that can do a "round robin" technique of handing out the service task (or do the "round robin" from a bean), I take it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not that it's not possible, it's just that running the Activiti API from multiple machines and querying manual/user tasks is SO much easier than configuring servers to be registered and visible from something called by a JavaDelegate &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did attempt 'Asynchronous' using an API client, but that really is Activiti-server-only; clients can't really see that "between the task and the sequence flow" state (at least not until the due date happens.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code above works pretty nicely in my testing, but I haven't tried running multiple instances yet. I'm guessing there would be two major cases that Activiti's API might already handle:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;* Optimistic locking failure trying to complete the task at the same time as someone else?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* Losing the battle when trying to complete the task because it's already been completed by someone else&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's fun starting processes manually and watching the agent grab them, do its work and then proceed or move to the failure state. I *really* like the "My instances" view in the Process section of Activiti Explorer. Nice red highlights showing where the tasks are now and where they've been. Sweet &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;– Ritchie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Oct 2015 19:39:39 GMT</pubDate>
    <dc:creator>ritchieannand</dc:creator>
    <dc:date>2015-10-28T19:39:39Z</dc:date>
    <item>
      <title>Competing for tasks</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/competing-for-tasks/m-p/200209#M153339</link>
      <description>If you're writing something that uses the Activiti API to automatically handle something, but there could be multiple copies of it, is there a good way to have it work with the workflow and handle the inevitable collisions?I was thinking about having the workflow split into a "queued" user/manual ta</description>
      <pubDate>Thu, 22 Oct 2015 21:00:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/competing-for-tasks/m-p/200209#M153339</guid>
      <dc:creator>ritchieannand</dc:creator>
      <dc:date>2015-10-22T21:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Competing for tasks</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/competing-for-tasks/m-p/200210#M153340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not fully following here, why wouldn't you use an async service task for this? The job executor solves the competing already for you?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 18:51:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/competing-for-tasks/m-p/200210#M153340</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-10-28T18:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Competing for tasks</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/competing-for-tasks/m-p/200211#M153341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Service tasks are outbound, right? You'd need to either be running multiple Activiti servers or put together something for a single Activiti server that can do a "round robin" technique of handing out the service task (or do the "round robin" from a bean), I take it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not that it's not possible, it's just that running the Activiti API from multiple machines and querying manual/user tasks is SO much easier than configuring servers to be registered and visible from something called by a JavaDelegate &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did attempt 'Asynchronous' using an API client, but that really is Activiti-server-only; clients can't really see that "between the task and the sequence flow" state (at least not until the due date happens.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code above works pretty nicely in my testing, but I haven't tried running multiple instances yet. I'm guessing there would be two major cases that Activiti's API might already handle:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;* Optimistic locking failure trying to complete the task at the same time as someone else?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* Losing the battle when trying to complete the task because it's already been completed by someone else&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's fun starting processes manually and watching the agent grab them, do its work and then proceed or move to the failure state. I *really* like the "My instances" view in the Process section of Activiti Explorer. Nice red highlights showing where the tasks are now and where they've been. Sweet &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;– Ritchie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 19:39:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/competing-for-tasks/m-p/200211#M153341</guid>
      <dc:creator>ritchieannand</dc:creator>
      <dc:date>2015-10-28T19:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Competing for tasks</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/competing-for-tasks/m-p/200212#M153342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Service tasks are not outbound, you write any logic you want in it. You also can use script tasks, no jar deployment needed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Job Executor of Activiti will do retries in case of failures. It also catches optimistic locking exceptions and assumes it has been picked up by another job executor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Clients can indeed not see that state, but should they? Would you rather have them wait until the -possibly long- logic has been executed?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 11:59:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/competing-for-tasks/m-p/200212#M153342</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-11-03T11:59:08Z</dc:date>
    </item>
  </channel>
</rss>

