<?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: How to query tasks matching more than one candidate group? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-query-tasks-matching-more-than-one-candidate-group/m-p/76891#M50798</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;REST support should have been implemented in 5.16 (&lt;/SPAN&gt;&lt;A href="https://jira.codehaus.org/browse/ACT-2013" rel="nofollow noopener noreferrer"&gt;https://jira.codehaus.org/browse/ACT-2013&lt;/A&gt;&lt;SPAN&gt;), but it doesn't work for me in 5.16.3. In fact I didn't manage to query for multiple candidateGroups by any method:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;GET &lt;/SPAN&gt;&lt;A href="http://localhost:8080/activiti-rest/service/runtime/tasks?candidateGroup=mygroup" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/activiti-rest/service/runtime/tasks?candidateGroup=mygroup&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;=&amp;gt; works&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;GET &lt;/SPAN&gt;&lt;A href="http://localhost:8080/activiti-rest/service/runtime/tasks?candidateGroups=mygroup" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/activiti-rest/service/runtime/tasks?candidateGroups=mygroup&lt;/A&gt;&lt;SPAN&gt;[,…]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;=&amp;gt; seems to ignore the filter&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;POST &lt;/SPAN&gt;&lt;A href="http://localhost:8080/activiti-rest/service/query/tasks" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/activiti-rest/service/query/tasks&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "candidateGroupIn": ["group1", "group2"]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;=&amp;gt; org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "candidateGroupIn" (Class org.activiti.rest.service.api.runtime.task.TaskQueryRequest), not marked as ignorable&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Oct 2014 05:41:46 GMT</pubDate>
    <dc:creator>cmj</dc:creator>
    <dc:date>2014-10-14T05:41:46Z</dc:date>
    <item>
      <title>How to query tasks matching more than one candidate group?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-query-tasks-matching-more-than-one-candidate-group/m-p/76886#M50793</link>
      <description>Hi, Anyone able to suggest a way to do this without hitting the database for each candidate group and then having to merge and sort in memory? What I had in mind was something like: List&amp;lt;Task&amp;gt; tasks = processEngine.getTaskService().createTaskQuery().taskCandidateGroupIn("group1", "group2");‍Is</description>
      <pubDate>Mon, 18 Apr 2011 06:02:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-query-tasks-matching-more-than-one-candidate-group/m-p/76886#M50793</guid>
      <dc:creator>tstephen</dc:creator>
      <dc:date>2011-04-18T06:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to query tasks matching more than one candidate group?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-query-tasks-matching-more-than-one-candidate-group/m-p/76887#M50794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I realised it may not have been clear that I want an OR semantic. In other words I'd like tasks that match &lt;/SPAN&gt;&lt;EM&gt;any&lt;/EM&gt;&lt;SPAN&gt; of the groups supplied not &lt;/SPAN&gt;&lt;EM&gt;all&lt;/EM&gt;&lt;SPAN&gt;. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had a look through the code and it looks like someone else has been thinking in this direction already as the query &lt;/SPAN&gt;&lt;CODE&gt;selectTaskByQueryCriteriaSql&lt;/CODE&gt;&lt;SPAN&gt; in the Task.xml mapping file is already written to support more than one candidate group. Anyone object to me creating a JIRA to expose this in the TaskQuery interface? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 12:36:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-query-tasks-matching-more-than-one-candidate-group/m-p/76887#M50794</guid>
      <dc:creator>tstephen</dc:creator>
      <dc:date>2011-04-18T12:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to query tasks matching more than one candidate group?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-query-tasks-matching-more-than-one-candidate-group/m-p/76888#M50795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tim,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The multiple groups are used internally (when querying for task for which user is candidate). But I don't see a problem in exposing this in the query…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 09:02:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-query-tasks-matching-more-than-one-candidate-group/m-p/76888#M50795</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-04-19T09:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to query tasks matching more than one candidate group?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-query-tasks-matching-more-than-one-candidate-group/m-p/76889#M50796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have created &lt;/SPAN&gt;&lt;A href="http://jira.codehaus.org/browse/ACT-796" rel="nofollow noopener noreferrer"&gt;http://jira.codehaus.org/browse/ACT-796&lt;/A&gt;&lt;SPAN&gt; and attached a patch to it. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2011 05:09:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-query-tasks-matching-more-than-one-candidate-group/m-p/76889#M50796</guid>
      <dc:creator>tstephen</dc:creator>
      <dc:date>2011-04-25T05:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to query tasks matching more than one candidate group?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-query-tasks-matching-more-than-one-candidate-group/m-p/76890#M50797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is this reflected anywhere in rest api?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;POST query/process-instances&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "candidateGroupIn": ["group1","group2"]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 06:53:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-query-tasks-matching-more-than-one-candidate-group/m-p/76890#M50797</guid>
      <dc:creator>nicolasfranck</dc:creator>
      <dc:date>2014-04-28T06:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to query tasks matching more than one candidate group?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-query-tasks-matching-more-than-one-candidate-group/m-p/76891#M50798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;REST support should have been implemented in 5.16 (&lt;/SPAN&gt;&lt;A href="https://jira.codehaus.org/browse/ACT-2013" rel="nofollow noopener noreferrer"&gt;https://jira.codehaus.org/browse/ACT-2013&lt;/A&gt;&lt;SPAN&gt;), but it doesn't work for me in 5.16.3. In fact I didn't manage to query for multiple candidateGroups by any method:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;GET &lt;/SPAN&gt;&lt;A href="http://localhost:8080/activiti-rest/service/runtime/tasks?candidateGroup=mygroup" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/activiti-rest/service/runtime/tasks?candidateGroup=mygroup&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;=&amp;gt; works&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;GET &lt;/SPAN&gt;&lt;A href="http://localhost:8080/activiti-rest/service/runtime/tasks?candidateGroups=mygroup" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/activiti-rest/service/runtime/tasks?candidateGroups=mygroup&lt;/A&gt;&lt;SPAN&gt;[,…]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;=&amp;gt; seems to ignore the filter&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;POST &lt;/SPAN&gt;&lt;A href="http://localhost:8080/activiti-rest/service/query/tasks" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/activiti-rest/service/query/tasks&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "candidateGroupIn": ["group1", "group2"]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;=&amp;gt; org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "candidateGroupIn" (Class org.activiti.rest.service.api.runtime.task.TaskQueryRequest), not marked as ignorable&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 05:41:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-query-tasks-matching-more-than-one-candidate-group/m-p/76891#M50798</guid>
      <dc:creator>cmj</dc:creator>
      <dc:date>2014-10-14T05:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to query tasks matching more than one candidate group?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-query-tasks-matching-more-than-one-candidate-group/m-p/76892#M50799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hmmm odd. The commit does contain a unit test for it: &lt;/SPAN&gt;&lt;A href="https://github.com/smirzai/Activiti/commit/59fcf446f11c52fe015b9fb21d61f72112642483" rel="nofollow noopener noreferrer"&gt;https://github.com/smirzai/Activiti/commit/59fcf446f11c52fe015b9fb21d61f72112642483&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And it indeed seems to use the json approach for querying.&amp;nbsp; From the code, i don't see anything wrong … but obviously it's not working for you. Can you see the difference between what you are doing and what is tested in the unit test?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2014 10:04:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-query-tasks-matching-more-than-one-candidate-group/m-p/76892#M50799</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-10-17T10:04:30Z</dc:date>
    </item>
  </channel>
</rss>

