<?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: assign task in round robin - is it out of the box in activiti 5.22 or the latest activiti 6?  in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/assign-task-in-round-robin-is-it-out-of-the-box-in-activiti-5-22/m-p/28565#M12196</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No there aren't out of the box implementations of other assignment modes but there are examples available online&amp;nbsp;that demonstrate&amp;nbsp;setting assignee dynamically. For example a recent&amp;nbsp;article in which this is done is -&amp;nbsp;&lt;A class="link-titled" href="http://javasampleapproach.com/java-integration/activiti-parallel-tasks-jpa-with-spring-boot-example" title="http://javasampleapproach.com/java-integration/activiti-parallel-tasks-jpa-with-spring-boot-example" rel="nofollow noopener noreferrer"&gt;How to create Activiti Parallel Tasks with Spring JPA + Spring Boot Example - JavaSampleApproach&lt;/A&gt;&amp;nbsp;. You can also look in the engine tests e.g.&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Activiti/Activiti/blob/develop/activiti-spring/src/test/java/org/activiti/spring/test/taskassignment/CustomTaskAssignmentTest.java" title="https://github.com/Activiti/Activiti/blob/develop/activiti-spring/src/test/java/org/activiti/spring/test/taskassignment/CustomTaskAssignmentTest.java" rel="nofollow noopener noreferrer"&gt;Activiti/CustomTaskAssignmentTest.java at develop · Activiti/Activiti · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Jan 2018 12:03:16 GMT</pubDate>
    <dc:creator>ryandawson</dc:creator>
    <dc:date>2018-01-05T12:03:16Z</dc:date>
    <item>
      <title>assign task in round robin - is it out of the box in activiti 5.22 or the latest activiti 6?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/assign-task-in-round-robin-is-it-out-of-the-box-in-activiti-5-22/m-p/28562#M12193</link>
      <description>Currently we are using activiti 5.22 and one of our clients asked to have "round robin task assignment". Is it available out of the box in 5.22 or in activiti 6 with less code?- I saw multiple questions on the same but not with clear answer (some were in 2015 where it tells this is not out of the bo</description>
      <pubDate>Tue, 02 Jan 2018 12:41:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/assign-task-in-round-robin-is-it-out-of-the-box-in-activiti-5-22/m-p/28562#M12193</guid>
      <dc:creator>vyssrayudu</dc:creator>
      <dc:date>2018-01-02T12:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: assign task in round robin - is it out of the box in activiti 5.22 or the latest activiti 6?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/assign-task-in-round-robin-is-it-out-of-the-box-in-activiti-5-22/m-p/28563#M12194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think it's available out of the box in either, it's something you would need to write some code for. See for example&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/thread/225127"&gt;Assign User Task a Round Robin mode&lt;/A&gt;&amp;nbsp;or &lt;A href="https://migration33.stage.lithium.com/thread/231000"&gt;Can we assign task to users in round robin fashion depending upon location of user and form location?&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I presume the point is to ensure that each user (or perhaps user in a certain group) gets roughly the same number of tasks assigned.&amp;nbsp;To do this you could keep a record of the last user to be assigned a task and each time a new task is to be assigned then you pick the next user in order of ID until there are no users with a greater ID and then you start at the beginning again. Or you could feasibly choose a user at random from the group as on average random selection should be evenly distributed (though one would have to be careful to use the pseudo-random number generator in a way that ensures distribution is indeed even). It is a similar problem to&amp;nbsp;&lt;A class="link-titled" href="https://help.salesforce.com/articleView?id=000004000&amp;amp;type=1" title="https://help.salesforce.com/articleView?id=000004000&amp;amp;type=1" rel="nofollow noopener noreferrer"&gt;Help | Training | Salesforce&lt;/A&gt;&amp;nbsp;&amp;nbsp;except that example is about distributing an existing pool of tasks, whereas you'd just need to allocate tasks out as they come. (Though I think you could do something closer to that example by using process instance id as they use 'lead number' and having a mapping of numbers to users.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One could have&amp;nbsp;a group as the candidate for a task so that anyone from the group can pick up those tasks and assign them to themselves but presumably the client doesn't want that in this case - maybe they want to ensure that everyone gets the same workload.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2018 15:09:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/assign-task-in-round-robin-is-it-out-of-the-box-in-activiti-5-22/m-p/28563#M12194</guid>
      <dc:creator>ryandawson</dc:creator>
      <dc:date>2018-01-02T15:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: assign task in round robin - is it out of the box in activiti 5.22 or the latest activiti 6?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/assign-task-in-round-robin-is-it-out-of-the-box-in-activiti-5-22/m-p/28564#M12195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ryan..yes ur assumption is right - client wanted to assign tasks to all agents evenly (max 10 per guy).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my second qn was - does activities support any task assignment modes out of the box - looks the answer is no as per ur thread.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2018 03:03:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/assign-task-in-round-robin-is-it-out-of-the-box-in-activiti-5-22/m-p/28564#M12195</guid>
      <dc:creator>vyssrayudu</dc:creator>
      <dc:date>2018-01-03T03:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: assign task in round robin - is it out of the box in activiti 5.22 or the latest activiti 6?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/assign-task-in-round-robin-is-it-out-of-the-box-in-activiti-5-22/m-p/28565#M12196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No there aren't out of the box implementations of other assignment modes but there are examples available online&amp;nbsp;that demonstrate&amp;nbsp;setting assignee dynamically. For example a recent&amp;nbsp;article in which this is done is -&amp;nbsp;&lt;A class="link-titled" href="http://javasampleapproach.com/java-integration/activiti-parallel-tasks-jpa-with-spring-boot-example" title="http://javasampleapproach.com/java-integration/activiti-parallel-tasks-jpa-with-spring-boot-example" rel="nofollow noopener noreferrer"&gt;How to create Activiti Parallel Tasks with Spring JPA + Spring Boot Example - JavaSampleApproach&lt;/A&gt;&amp;nbsp;. You can also look in the engine tests e.g.&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Activiti/Activiti/blob/develop/activiti-spring/src/test/java/org/activiti/spring/test/taskassignment/CustomTaskAssignmentTest.java" title="https://github.com/Activiti/Activiti/blob/develop/activiti-spring/src/test/java/org/activiti/spring/test/taskassignment/CustomTaskAssignmentTest.java" rel="nofollow noopener noreferrer"&gt;Activiti/CustomTaskAssignmentTest.java at develop · Activiti/Activiti · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2018 12:03:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/assign-task-in-round-robin-is-it-out-of-the-box-in-activiti-5-22/m-p/28565#M12196</guid>
      <dc:creator>ryandawson</dc:creator>
      <dc:date>2018-01-05T12:03:16Z</dc:date>
    </item>
  </channel>
</rss>

