<?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: Select tasks by candidateUser or candidateGroups in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/select-tasks-by-candidateuser-or-candidategroups/m-p/81788#M54757</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I understand that the activiti query API has an 'AND' semantics for all its queries, but I need OR just as described in iBatis mapping.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want select all tasks where the user is listed as a candidate (username or groupname) but the API does not allow me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;taskService.createTaskQuery().taskCandidateGroupIn(user.getGroups()).taskCandidateUser(user.getUsername()).list();&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Oct 2012 15:09:50 GMT</pubDate>
    <dc:creator>fersmi</dc:creator>
    <dc:date>2012-10-02T15:09:50Z</dc:date>
    <item>
      <title>Select tasks by candidateUser or candidateGroups</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/select-tasks-by-candidateuser-or-candidategroups/m-p/81786#M54755</link>
      <description>Hi,I tried select all task by candidateUser or candidateGroups in TaskQuerytaskService.createTaskQuery().taskCandidateGroupIn(roleNames).taskCandidateUser(user.getUsername()).orderByDueDate().asc().list();‍but I got ActivitiException - Invalid query usage: cannot set both candidateUser and candidate</description>
      <pubDate>Tue, 18 Sep 2012 08:50:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/select-tasks-by-candidateuser-or-candidategroups/m-p/81786#M54755</guid>
      <dc:creator>fersmi</dc:creator>
      <dc:date>2012-09-18T08:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Select tasks by candidateUser or candidateGroups</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/select-tasks-by-candidateuser-or-candidategroups/m-p/81787#M54756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The activiti query api has an 'AND' semantics for all its queries: so your query would basically read "give me all people that are in this group AND that are called like this".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is that what you'd want?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I agree that the query seems to indicate otherwise… but the or seems definitely misplaced there, given the regular query semantics.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2012 08:13:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/select-tasks-by-candidateuser-or-candidategroups/m-p/81787#M54756</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-09-19T08:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Select tasks by candidateUser or candidateGroups</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/select-tasks-by-candidateuser-or-candidategroups/m-p/81788#M54757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I understand that the activiti query API has an 'AND' semantics for all its queries, but I need OR just as described in iBatis mapping.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want select all tasks where the user is listed as a candidate (username or groupname) but the API does not allow me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;taskService.createTaskQuery().taskCandidateGroupIn(user.getGroups()).taskCandidateUser(user.getUsername()).list();&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 15:09:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/select-tasks-by-candidateuser-or-candidategroups/m-p/81788#M54757</guid>
      <dc:creator>fersmi</dc:creator>
      <dc:date>2012-10-02T15:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Select tasks by candidateUser or candidateGroups</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/select-tasks-by-candidateuser-or-candidategroups/m-p/81789#M54758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I understand that the activiti query API has an 'AND' semantics for all its queries, but I need OR just as described in iBatis mapping.&lt;BR /&gt;I want select all tasks where the user is listed as a candidate (username or groupname) but the API does not allow me.&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;taskService.createTaskQuery().taskCandidateGroupIn(user.getGroups()).taskCandidateUser(user.getUsername()).list();&lt;/CODE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a same demand :!:&amp;nbsp; :?:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In our projects, we mapping activity's tables to entities that like task/processInstance/historyProcessInstance use jpa, and Integrate in our business entities. Then use hql to query workflow and business datas.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 15:58:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/select-tasks-by-candidateuser-or-candidategroups/m-p/81789#M54758</guid>
      <dc:creator>kafeitu</dc:creator>
      <dc:date>2012-10-02T15:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Select tasks by candidateUser or candidateGroups</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/select-tasks-by-candidateuser-or-candidategroups/m-p/81790#M54759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a similar problem. I want to query tasks by candidateGroup using taskCandidateGroup(). But this adds automatically a restriction that an assignee is not set:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;… and T.ASSIGNEE_ is null and I.TYPE_ = 'candidate' …&lt;/CODE&gt;&lt;SPAN&gt;Why must assignee be null? There is s seperate method taskUnassigned() to achieve this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The tasks i need to query have a candidateGroup &lt;/SPAN&gt;&lt;EM&gt;and &lt;/EM&gt;&lt;SPAN&gt;an assignee. I have no chance to get them. I think it would make sense to remove "T.ASSIGNEE_ is null" when using taskCandidateGroup()&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>Tue, 02 Oct 2012 18:56:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/select-tasks-by-candidateuser-or-candidategroups/m-p/81790#M54759</guid>
      <dc:creator>mschaefer</dc:creator>
      <dc:date>2012-10-02T18:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Select tasks by candidateUser or candidateGroups</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/select-tasks-by-candidateuser-or-candidategroups/m-p/81791#M54760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I think it would make sense to remove "T.ASSIGNEE_ is null" when using taskCandidateGroup()&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Our reasoning is that a task isn't "claimable" by a group-member if it's already assigned. So the query is built this way…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2012 07:58:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/select-tasks-by-candidateuser-or-candidategroups/m-p/81791#M54760</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-10-03T07:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: Select tasks by candidateUser or candidateGroups</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/select-tasks-by-candidateuser-or-candidategroups/m-p/81792#M54761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The idea behind is that you don't need candidate groups once you set the assignee. It's only until the user gives up the task (assignee is set to null), that the task is put back into the pool if the group.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which use case are you thinking of that would invalidate that?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2012 08:04:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/select-tasks-by-candidateuser-or-candidategroups/m-p/81792#M54761</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-10-03T08:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Select tasks by candidateUser or candidateGroups</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/select-tasks-by-candidateuser-or-candidategroups/m-p/81793#M54762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The idea behind is that you don't need candidate groups once you set the assignee. It's only until the user gives up the task (assignee is set to null), that the task is put back into the pool if the group.&lt;BR /&gt;&lt;BR /&gt;Which use case are you thinking of that would invalidate that?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;What do you think about add a new api like below?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;taskService.createTaskQuery().taskCandidateUserOrGroup("kermit", "manager");&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2012 09:12:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/select-tasks-by-candidateuser-or-candidategroups/m-p/81793#M54762</guid>
      <dc:creator>kafeitu</dc:creator>
      <dc:date>2012-10-03T09:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Select tasks by candidateUser or candidateGroups</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/select-tasks-by-candidateuser-or-candidategroups/m-p/81794#M54763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Which use case are you thinking of that would invalidate that?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;The use case i must realize is based on the requirements from one of our clients (insurance business):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- There are users handling incoming notifications of loss&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- The users are organized in groups to replace each other in certain cases (illness, etc&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;SPAN&gt;- When a notification arrives, the process in Activiti is started and a UserTask is directly assigned to one of the users as "assignee" and the user's group is also set as "candidateGroup"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Now there is the point: There is a manager which needs to see &lt;/SPAN&gt;&lt;EM&gt;all &lt;/EM&gt;&lt;SPAN&gt;tasks (one list per group) so he can reassign them if needed. There is no chance now to show such lists because taskCandidateGroup(String candidateGroup) removes all assigned tasks by adding "assignee = null" to the query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I understand the idea that an assigned task should no more be visible by other users. But this is now hard coded into the query API and disallows other use cases like the one i described above. And i am sure this is a very common use case. If "assignee = null" would be removed both use cases could simply be realized like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;taskCandidateGroup(String candidateGroup)&amp;nbsp; -&amp;gt; would select all tasks having the given candidateGroup (No more "assignee = null")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;taskCandidateGroup(String candidateGroup).taskUnassigned() -&amp;gt; would select all tasks having the given candidateGroup and have no assignee set.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know, backward compatibility could be an issue here. But i think it would be huge gain for Activiti developers. I saw a lot of forum posts regarding this problem.&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>Wed, 03 Oct 2012 20:15:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/select-tasks-by-candidateuser-or-candidategroups/m-p/81794#M54763</guid>
      <dc:creator>mschaefer</dc:creator>
      <dc:date>2012-10-03T20:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Select tasks by candidateUser or candidateGroups</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/select-tasks-by-candidateuser-or-candidategroups/m-p/81795#M54764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, Martin I'm convinced that this is indeed a valid use case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I created &lt;/SPAN&gt;&lt;A href="http://jira.codehaus.org/browse/ACT-1395" rel="nofollow noopener noreferrer"&gt;http://jira.codehaus.org/browse/ACT-1395&lt;/A&gt;&lt;SPAN&gt; to implement the feature&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 15:50:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/select-tasks-by-candidateuser-or-candidategroups/m-p/81795#M54764</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-10-04T15:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Select tasks by candidateUser or candidateGroups</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/select-tasks-by-candidateuser-or-candidategroups/m-p/81796#M54765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Ok, Martin I'm convinced that this is indeed a valid use case.&lt;BR /&gt;I created &lt;A href="http://jira.codehaus.org/browse/ACT-1395" rel="nofollow noopener noreferrer"&gt;http://jira.codehaus.org/browse/ACT-1395&lt;/A&gt; to implement the feature&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Joram&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thousand Thanks! Makes me really happy because i can stick with Activiti's API (which i really like btw) without an ugly hack.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 15:23:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/select-tasks-by-candidateuser-or-candidategroups/m-p/81796#M54765</guid>
      <dc:creator>mschaefer</dc:creator>
      <dc:date>2012-10-05T15:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Select tasks by candidateUser or candidateGroups</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/select-tasks-by-candidateuser-or-candidategroups/m-p/81797#M54766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The idea behind is that you don't need candidate groups once you set the assignee. It's only until the user gives up the task (assignee is set to null), that the task is put back into the pool if the group.&lt;BR /&gt;&lt;BR /&gt;Which use case are you thinking of that would invalidate that?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;What do you think about add a new api like below?&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;taskService.createTaskQuery().taskCandidateUserOrGroup("kermit", "manager");&lt;BR /&gt;&lt;/CODE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, and second one for more candidate groups:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;List&amp;lt;String&amp;gt; groups = new ArrayList&amp;lt;String&amp;gt;();&lt;BR /&gt;groups.add("manager");&lt;BR /&gt;groups.add("ceo");&lt;BR /&gt;taskService.createTaskQuery().taskCandidateUserOrGroupIn("kermit", groups);&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2012 11:04:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/select-tasks-by-candidateuser-or-candidategroups/m-p/81797#M54766</guid>
      <dc:creator>fersmi</dc:creator>
      <dc:date>2012-10-18T11:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Select tasks by candidateUser or candidateGroups</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/select-tasks-by-candidateuser-or-candidategroups/m-p/81798#M54767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The idea behind is that you don't need candidate groups once you set the assignee. It's only until the user gives up the task (assignee is set to null), that the task is put back into the pool if the group.&lt;BR /&gt;&lt;BR /&gt;Which use case are you thinking of that would invalidate that?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;What do you think about add a new api like below?&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;taskService.createTaskQuery().taskCandidateUserOrGroup("kermit", "manager");&lt;BR /&gt;&lt;/CODE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Yes, and second one for more candidate groups:&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;List&amp;lt;String&amp;gt; groups = new ArrayList&amp;lt;String&amp;gt;();&lt;BR /&gt;groups.add("manager");&lt;BR /&gt;groups.add("ceo");&lt;BR /&gt;taskService.createTaskQuery().taskCandidateUserOrGroupIn("kermit", groups);&lt;BR /&gt;&lt;/CODE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;But the native query in version 5.11 can be used, so you can use it to query anything by native sql.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2012 11:27:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/select-tasks-by-candidateuser-or-candidategroups/m-p/81798#M54767</guid>
      <dc:creator>kafeitu</dc:creator>
      <dc:date>2012-10-18T11:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Select tasks by candidateUser or candidateGroups</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/select-tasks-by-candidateuser-or-candidategroups/m-p/81799#M54768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;I tried select all task by candidateUser or candidateGroups in TaskQuery&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Why not:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;List&amp;lt;Task&amp;gt; t1 = taskService.createTaskQuery().taskCandidateGroupIn(roleNames).orderByDueDate().asc().list();&lt;BR /&gt;List&amp;lt;Task&amp;gt; t2 = taskService.createTaskQuery().taskCandidateUser(user.getUsername()).orderByDueDate().asc().list();&lt;BR /&gt;&lt;BR /&gt;foreach (Task t in t2){&lt;BR /&gt;&amp;nbsp; if (!t1.contains(t){&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; t1.add(t);&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;}&lt;BR /&gt;return t1;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;or am i getting your question wrong?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 11:58:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/select-tasks-by-candidateuser-or-candidategroups/m-p/81799#M54768</guid>
      <dc:creator>dognose</dc:creator>
      <dc:date>2012-10-22T11:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Select tasks by candidateUser or candidateGroups</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/select-tasks-by-candidateuser-or-candidategroups/m-p/81800#M54769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dognose, that's a current workaround that can be used. However, it involves pulling all tasks in-memory and filtering there. Would be better to have DB do the heavy lifting and joining and not waste memory &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 13:34:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/select-tasks-by-candidateuser-or-candidategroups/m-p/81800#M54769</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-10-22T13:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Select tasks by candidateUser or candidateGroups</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/select-tasks-by-candidateuser-or-candidategroups/m-p/81801#M54770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Dognose, that's a current workaround that can be used. However, it involves pulling all tasks in-memory and filtering there. Would be better to have DB do the heavy lifting and joining and not waste memory &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, it will pull some tasks that are actually not required…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Better Workaround:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;don't use "candidateUser" field, but wrap all Users into (virtual) one-man-groups (so called "OMG"s&amp;nbsp; &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt; ) (dognose is member of omg_dognose)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then you just need to translate the username to the omg-name and can receive all tasks by just querying for candidateGroups&amp;nbsp;&amp;nbsp; :shock: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(Dunno if your architecture will quickly allow such a fix)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(According to your snipped, you need just add the "role" omg_dognose to dognose and that's it)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 14:48:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/select-tasks-by-candidateuser-or-candidategroups/m-p/81801#M54770</guid>
      <dc:creator>dognose</dc:creator>
      <dc:date>2012-10-22T14:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Select tasks by candidateUser or candidateGroups</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/select-tasks-by-candidateuser-or-candidategroups/m-p/81802#M54771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OMG, indeed… Inventive workaround&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 14:52:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/select-tasks-by-candidateuser-or-candidategroups/m-p/81802#M54771</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-10-22T14:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Select tasks by candidateUser or candidateGroups</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/select-tasks-by-candidateuser-or-candidategroups/m-p/81803#M54772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OMG… excelent!&amp;nbsp; &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://connect.hyland.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2012 14:59:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/select-tasks-by-candidateuser-or-candidategroups/m-p/81803#M54772</guid>
      <dc:creator>fersmi</dc:creator>
      <dc:date>2012-10-24T14:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: Select tasks by candidateUser or candidateGroups</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/select-tasks-by-candidateuser-or-candidategroups/m-p/81804#M54773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm having the same requirements, but can't find any way to do it with the Task queries…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to list all tasks for a specific group (taskCandidateGroupIn), whether they are already assigned or not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you please tell me how can I do that? It looks impossible… unless doing two queries (!).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 15:07:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/select-tasks-by-candidateuser-or-candidategroups/m-p/81804#M54773</guid>
      <dc:creator>bam</dc:creator>
      <dc:date>2015-07-13T15:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Select tasks by candidateUser or candidateGroups</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/select-tasks-by-candidateuser-or-candidategroups/m-p/81805#M54774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The current master branch has a way to do this, using or() with the taskCandidateUsers and taskCandidateGroupIn. It will be part of 5.18 (planned for end this month).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 19:29:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/select-tasks-by-candidateuser-or-candidategroups/m-p/81805#M54774</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-07-14T19:29:12Z</dc:date>
    </item>
  </channel>
</rss>

