<?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: Query task that assigned to me or candidate group I member in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/query-task-that-assigned-to-me-or-candidate-group-i-member/m-p/98848#M68206</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;At the end, today, I edited the org/activiti/db/mapping/Task.xml to deal with 3 different options:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1, taskAssignee is defined, and no candidate user and no candidate group&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2, no taskAssignee is defined and (candidate user or group is defined)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3, both defined ( I used here left outer join to have all the results)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Zotlan&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;To query for tasks in more than one group at a time you need the patch attached to &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;. The latest comment is that this should be in 5.9 (not yet released). &lt;BR /&gt;&lt;BR /&gt;Once you have that I believe it is possible to combine assignee and candidateIn something like this: &lt;BR /&gt;&lt;CODE&gt;List&amp;lt;Task&amp;gt; tasks = processEngine.getTaskService().createTaskQuery().taskAssignee("user").taskCandidateGroupIn("group1", "group2");&lt;/CODE&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Tim&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Feb 2012 21:24:59 GMT</pubDate>
    <dc:creator>bekesizoltan</dc:creator>
    <dc:date>2012-02-20T21:24:59Z</dc:date>
    <item>
      <title>Query task that assigned to me or candidate group I member</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/query-task-that-assigned-to-me-or-candidate-group-i-member/m-p/98846#M68204</link>
      <description>Hi,I would like to show all the task (paged and ordered) that is assigned to me or the task is at a candidate group that I a member of.I can do task query only for one case , but it would be great to merge the 2 kind (assigned to me, one of my groups is the candidate group results into one grid) of</description>
      <pubDate>Tue, 14 Feb 2012 22:33:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/query-task-that-assigned-to-me-or-candidate-group-i-member/m-p/98846#M68204</guid>
      <dc:creator>bekesizoltan</dc:creator>
      <dc:date>2012-02-14T22:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Query task that assigned to me or candidate group I member</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/query-task-that-assigned-to-me-or-candidate-group-i-member/m-p/98847#M68205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To query for tasks in more than one group at a time you need the patch attached to &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;. The latest comment is that this should be in 5.9 (not yet released). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once you have that I believe it is possible to combine assignee and candidateIn something like this: &lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;List&amp;lt;Task&amp;gt; tasks = processEngine.getTaskService().createTaskQuery().taskAssignee("user").taskCandidateGroupIn("group1", "group2");&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2012 13:20:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/query-task-that-assigned-to-me-or-candidate-group-i-member/m-p/98847#M68205</guid>
      <dc:creator>tstephen</dc:creator>
      <dc:date>2012-02-15T13:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Query task that assigned to me or candidate group I member</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/query-task-that-assigned-to-me-or-candidate-group-i-member/m-p/98848#M68206</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;At the end, today, I edited the org/activiti/db/mapping/Task.xml to deal with 3 different options:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1, taskAssignee is defined, and no candidate user and no candidate group&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2, no taskAssignee is defined and (candidate user or group is defined)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3, both defined ( I used here left outer join to have all the results)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Zotlan&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;To query for tasks in more than one group at a time you need the patch attached to &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;. The latest comment is that this should be in 5.9 (not yet released). &lt;BR /&gt;&lt;BR /&gt;Once you have that I believe it is possible to combine assignee and candidateIn something like this: &lt;BR /&gt;&lt;CODE&gt;List&amp;lt;Task&amp;gt; tasks = processEngine.getTaskService().createTaskQuery().taskAssignee("user").taskCandidateGroupIn("group1", "group2");&lt;/CODE&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Tim&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2012 21:24:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/query-task-that-assigned-to-me-or-candidate-group-i-member/m-p/98848#M68206</guid>
      <dc:creator>bekesizoltan</dc:creator>
      <dc:date>2012-02-20T21:24:59Z</dc:date>
    </item>
  </channel>
</rss>

