<?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: Howto get both assigned tasks and tasks where use is candidate in one call in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/howto-get-both-assigned-tasks-and-tasks-where-use-is-candidate/m-p/159606#M113635</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think that the option "RES.ASSIGNEE_ is null" should be an option in the API of the task query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a similar need, and i'm struggling with it. I see no other choice than native query, which isn't nice..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or, is there any other way?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Feb 2016 16:07:40 GMT</pubDate>
    <dc:creator>bam</dc:creator>
    <dc:date>2016-02-04T16:07:40Z</dc:date>
    <item>
      <title>Howto get both assigned tasks and tasks where use is candidate in one call</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/howto-get-both-assigned-tasks-and-tasks-where-use-is-candidate/m-p/159598#M113627</link>
      <description>Hi all,I want to retrieve all tasks that are assigned to a user plus all tasks where the user is a candidate to properly implement paging and sorting. The following scenario should work&lt;IMG id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;tart one process with one simple user task defining candidate groups (group1, group2)Query tasks for user (member</description>
      <pubDate>Fri, 25 Apr 2014 13:48:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/howto-get-both-assigned-tasks-and-tasks-where-use-is-candidate/m-p/159598#M113627</guid>
      <dc:creator>xman-berlin</dc:creator>
      <dc:date>2014-04-25T13:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Howto get both assigned tasks and tasks where use is candidate in one call</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/howto-get-both-assigned-tasks-and-tasks-where-use-is-candidate/m-p/159599#M113628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Torsten,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;e.g.&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;…&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TaskQuery query = taskService.createTaskQuery().taskCandidateOrAssigned("kermit");&lt;BR /&gt;…&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;task candidate in groups&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; List&amp;lt;String&amp;gt; groups = Arrays.asList("management", "accountancy");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TaskQuery query = taskService.createTaskQuery().taskCandidateGroupIn(groups);&lt;BR /&gt;&lt;/CODE&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>Mon, 28 Apr 2014 07:04:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/howto-get-both-assigned-tasks-and-tasks-where-use-is-candidate/m-p/159599#M113628</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2014-04-28T07:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Howto get both assigned tasks and tasks where use is candidate in one call</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/howto-get-both-assigned-tasks-and-tasks-where-use-is-candidate/m-p/159600#M113629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Martin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this works. I thought I already tested it, but obviously not. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Torsten&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 07:15:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/howto-get-both-assigned-tasks-and-tasks-where-use-is-candidate/m-p/159600#M113629</guid>
      <dc:creator>xman-berlin</dc:creator>
      <dc:date>2014-04-28T07:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Howto get both assigned tasks and tasks where use is candidate in one call</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/howto-get-both-assigned-tasks-and-tasks-where-use-is-candidate/m-p/159601#M113630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Follow up: The function seems to fail for users which were candidates as well. I have the following test case:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;Start process with a simple task.&lt;/LI&gt;&lt;LI&gt;user1 and user2 are candidates of the task.&lt;/LI&gt;&lt;LI&gt;user1 claims the task.&lt;/LI&gt;&lt;LI&gt;user1 queries tasks by TaskQuery.taskCandidateOrAssigned: returns task1. -&amp;gt; OK&lt;/LI&gt;&lt;LI&gt;user2 queries tasks by TaskQuery.taskCandidateOrAssigned: returns task1. -&amp;gt; FAIL.&lt;/LI&gt;&lt;/UL&gt;&lt;SPAN&gt;I thought that claiming a task removes it from tasklist of other candidates. To prove the failure, I tried to claim the task by user2 but this works as expected -&amp;gt; Activiti throws ActivitiTaskAlreadyClaimedException.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any hints?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Torsten&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 07:36:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/howto-get-both-assigned-tasks-and-tasks-where-use-is-candidate/m-p/159601#M113630</guid>
      <dc:creator>xman-berlin</dc:creator>
      <dc:date>2014-04-28T07:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Howto get both assigned tasks and tasks where use is candidate in one call</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/howto-get-both-assigned-tasks-and-tasks-where-use-is-candidate/m-p/159602#M113631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Torsten,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I created jUnit test and you are right.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The way how the query is implemented is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;when test="bothCandidateAndAssigned"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;if test="userIdForCandidateAndAssignee != null"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and (RES.ASSIGNEE_ = #{userIdForCandidateAndAssignee} or (RES.ASSIGNEE_ is null and I.USER_ID_ = #{userIdForCandidateAndAssignee} or I.GROUP_ID_ IN (select g.GROUP_ID_ from ACT_ID_MEMBERSHIP g where g.USER_ID_ = #{userIdForCandidateAndAssignee} ) ) )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/if&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/when&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;It means that candidate is taken into account only for tasks without assignee.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Another possibility for you could be to use native query support.&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;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 07:12:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/howto-get-both-assigned-tasks-and-tasks-where-use-is-candidate/m-p/159602#M113631</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2014-04-29T07:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Howto get both assigned tasks and tasks where use is candidate in one call</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/howto-get-both-assigned-tasks-and-tasks-where-use-is-candidate/m-p/159603#M113632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Martin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I see, the sql statement is just missing the limitation of "RES_ASSIGNEE_ is null" when it checks the group IDs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think this is a bug. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Torsten&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 12:31:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/howto-get-both-assigned-tasks-and-tasks-where-use-is-candidate/m-p/159603#M113632</guid>
      <dc:creator>xman-berlin</dc:creator>
      <dc:date>2014-04-29T12:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Howto get both assigned tasks and tasks where use is candidate in one call</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/howto-get-both-assigned-tasks-and-tasks-where-use-is-candidate/m-p/159604#M113633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Torsten,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would say, that limitation is &lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;RES.ASSIGNEE_ is null …..&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;I think when the task is assigned, it is not fetched into the query for candidates.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not sure whether it is bug or not, it could be done by purpose like this.&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, 30 Apr 2014 06:16:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/howto-get-both-assigned-tasks-and-tasks-where-use-is-candidate/m-p/159604#M113633</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2014-04-30T06:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Howto get both assigned tasks and tasks where use is candidate in one call</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/howto-get-both-assigned-tasks-and-tasks-where-use-is-candidate/m-p/159605#M113634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you please give a native query solution for the original question: Howto get both assigned tasks and tasks where use is candidate in one call&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 08:38:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/howto-get-both-assigned-tasks-and-tasks-where-use-is-candidate/m-p/159605#M113634</guid>
      <dc:creator>p4w3l</dc:creator>
      <dc:date>2015-08-17T08:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Howto get both assigned tasks and tasks where use is candidate in one call</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/howto-get-both-assigned-tasks-and-tasks-where-use-is-candidate/m-p/159606#M113635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think that the option "RES.ASSIGNEE_ is null" should be an option in the API of the task query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a similar need, and i'm struggling with it. I see no other choice than native query, which isn't nice..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or, is there any other way?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 16:07:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/howto-get-both-assigned-tasks-and-tasks-where-use-is-candidate/m-p/159606#M113635</guid>
      <dc:creator>bam</dc:creator>
      <dc:date>2016-02-04T16:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Howto get both assigned tasks and tasks where use is candidate in one call</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/howto-get-both-assigned-tasks-and-tasks-where-use-is-candidate/m-p/159607#M113636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please, please, create an option for that use case. We might want to see our tasks and our colleague's !&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I forked the repo to edit Task.xml to remove all the references to "RES.ASSIGNEE_ is null", and recompile my own version of the engine.&amp;nbsp; I hate doing this. I hate it..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 17:53:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/howto-get-both-assigned-tasks-and-tasks-where-use-is-candidate/m-p/159607#M113636</guid>
      <dc:creator>bam</dc:creator>
      <dc:date>2016-02-04T17:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: Howto get both assigned tasks and tasks where use is candidate in one call</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/howto-get-both-assigned-tasks-and-tasks-where-use-is-candidate/m-p/159608#M113637</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;The best way to get this in the Activiti project is to create a pull request. &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>Thu, 04 Feb 2016 19:52:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/howto-get-both-assigned-tasks-and-tasks-where-use-is-candidate/m-p/159608#M113637</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2016-02-04T19:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Howto get both assigned tasks and tasks where use is candidate in one call</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/howto-get-both-assigned-tasks-and-tasks-where-use-is-candidate/m-p/159609#M113638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Was anything done about this request?&amp;nbsp; I think this is the same thing I was asking about in another thread: &lt;/SPAN&gt;&lt;A href="https://forums.activiti.org/content/how-get-tasks-where-user-would-be-candidate-if-not-already-assigned" rel="nofollow noopener noreferrer"&gt;https://forums.activiti.org/content/how-get-tasks-where-user-would-be-candidate-if-not-already-assigned&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Mar 2016 01:43:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/howto-get-both-assigned-tasks-and-tasks-where-use-is-candidate/m-p/159609#M113638</guid>
      <dc:creator>schmke</dc:creator>
      <dc:date>2016-03-12T01:43:30Z</dc:date>
    </item>
  </channel>
</rss>

