<?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 query.taskCandidateUser issue in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/query-taskcandidateuser-issue/m-p/91914#M62786</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;When i have a user task like this&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;userTask id="createReport4" name="create the report4" activiti:candidateGroups="ROLE_CREATE"/&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;then taskQuery.taskCandidateUser("myuser") will return this task if "myuser" has ROLE_CREATE. So far so good.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When i put a task without candidate restriction (meaning anyone could pick it up)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;userTask id="createReport4" name="create the report4"/&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;then taskQuery.taskCandidateUser("myuser") does not return this task, even though logically it should. For this task everyone is a 'candidate' user. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, from a taskbasket perspective, how would i query for such task ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 May 2012 08:29:57 GMT</pubDate>
    <dc:creator>heymjo</dc:creator>
    <dc:date>2012-05-04T08:29:57Z</dc:date>
    <item>
      <title>query.taskCandidateUser issue</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/query-taskcandidateuser-issue/m-p/91914#M62786</link>
      <description>Hi,When i have a user task like this&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;userTask id="createReport4" name="create the report4" activiti:candidateGroups="ROLE_CREATE"/&amp;gt;‍‍‍then taskQuery.taskCandidateUser("myuser") will return this task if "myuser" has ROLE_CREATE. So far so good.When i put a task without candidate restriction</description>
      <pubDate>Fri, 04 May 2012 08:29:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/query-taskcandidateuser-issue/m-p/91914#M62786</guid>
      <dc:creator>heymjo</dc:creator>
      <dc:date>2012-05-04T08:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: query.taskCandidateUser issue</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/query-taskcandidateuser-issue/m-p/91915#M62787</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;I understand your comment on this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But what's implemented now is that we check if there's a identity link defined for that candidate user or group.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So if there are no identity links, it will see this as no match.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It would slow down the query if we add the additional "no identity link" variant.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But we could of course add a method to the TaskService that retrieves the tasks that have no identity links.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Would that solve your issue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2012 08:00:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/query-taskcandidateuser-issue/m-p/91915#M62787</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2012-05-07T08:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: query.taskCandidateUser issue</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/query-taskcandidateuser-issue/m-p/91916#M62788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;But we could of course add a method to the TaskService that retrieves the tasks that have no identity links.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;It would still be up to the API user then to merge both results and do two queries. I guess that's acceptable, as long as the distinction with .taskUnassigned() is clear (might not be for new users).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2012 10:44:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/query-taskcandidateuser-issue/m-p/91916#M62788</guid>
      <dc:creator>heymjo</dc:creator>
      <dc:date>2012-05-07T10:44:53Z</dc:date>
    </item>
  </channel>
</rss>

