<?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 retrieve valid assignees of given task in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-valid-assignees-of-given-task/m-p/20274#M9439</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;there is currently no way through our identity service to obtain the users yet.&lt;BR /&gt;&lt;BR /&gt;as part of &lt;A href="http://jira.codehaus.org/browse/ACT-104" rel="nofollow noopener noreferrer"&gt;http://jira.codehaus.org/browse/ACT-104&lt;/A&gt; (Replace findXxx methods returning lists with query API), there will be an api offered that should look like this: identityService.createUserQuery().list();&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Noted. I will watch this issue closely.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chee Kin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Sep 2010 14:33:33 GMT</pubDate>
    <dc:creator>limcheekin</dc:creator>
    <dc:date>2010-09-17T14:33:33Z</dc:date>
    <item>
      <title>How to retrieve valid assignees of given task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-valid-assignees-of-given-task/m-p/20267#M9432</link>
      <description>Hi there,Below are some possible ways to specify valid assignees (potentialOwner) of userTask:&amp;lt;userTask id="theTask" name="my task" activiti:candidateUsers="kermit, gonzo" /&amp;gt;‍‍‍Valid assignees = kermit and gonzo&amp;lt;userTask id="theTask" name="my task" activiti:candidateGroups="management, acco</description>
      <pubDate>Wed, 15 Sep 2010 03:03:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-valid-assignees-of-given-task/m-p/20267#M9432</guid>
      <dc:creator>limcheekin</dc:creator>
      <dc:date>2010-09-15T03:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve valid assignees of given task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-valid-assignees-of-given-task/m-p/20268#M9433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried the following but seems like CommandContext.getCurrent() is null when you cast a Task to TaskEntity:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;List&amp;lt;Task&amp;gt; tasks = taskService.findUnassignedTasks("fozzie");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Task task = tasks.get(0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TaskEntity taskEntity = (TaskEntity) task;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set&amp;lt;TaskInvolvementEntity&amp;gt; candidates = taskEntity.getCandidates();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Getting a NullPointerException at the last line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There must be a way to get this, but I don't know how!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Sep 2010 06:45:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-valid-assignees-of-given-task/m-p/20268#M9433</guid>
      <dc:creator>turgayz</dc:creator>
      <dc:date>2010-09-15T06:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve valid assignees of given task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-valid-assignees-of-given-task/m-p/20269#M9434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;On the identityService:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; List&amp;lt;Group&amp;gt; findGroupsByUserId(String userId)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; List&amp;lt;User&amp;gt; findUsersByGroupId(String groupId);&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Sep 2010 09:07:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-valid-assignees-of-given-task/m-p/20269#M9434</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2010-09-15T09:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve valid assignees of given task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-valid-assignees-of-given-task/m-p/20270#M9435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;On the identityService:&lt;BR /&gt;&lt;BR /&gt; List&amp;lt;Group&amp;gt; findGroupsByUserId(String userId)&lt;BR /&gt; List&amp;lt;User&amp;gt; findUsersByGroupId(String groupId);&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for response. I awared that these API in identityService, but that doesn't help. Let's say I want to re-assign the task to other user, how do I know it is valid assignee of given task? That's the reason the application need to retrieve the list of valid assignee first prior to re-assignment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chee Kin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Sep 2010 10:43:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-valid-assignees-of-given-task/m-p/20270#M9435</guid>
      <dc:creator>limcheekin</dc:creator>
      <dc:date>2010-09-15T10:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve valid assignees of given task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-valid-assignees-of-given-task/m-p/20271#M9436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can't you just check then the if the user is inside one of the candidate(-groups) ? That information is not removed when the assignee is assigned.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Sep 2010 08:21:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-valid-assignees-of-given-task/m-p/20271#M9436</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2010-09-16T08:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve valid assignees of given task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-valid-assignees-of-given-task/m-p/20272#M9437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for response and your patient. Maybe I don't understand your message or perhaps I used the wrong word. Given the image below, If I want to assign the task to an user (Assignee column), the application need to retrieve all valid candidates first, right? How do current Activiti API support this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please advice. Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[attachment=0]AllTasks.jpg[/attachment]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chee Kin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Sep 2010 09:20:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-valid-assignees-of-given-task/m-p/20272#M9437</guid>
      <dc:creator>limcheekin</dc:creator>
      <dc:date>2010-09-16T09:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve valid assignees of given task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-valid-assignees-of-given-task/m-p/20273#M9438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;there is currently no way through our identity service to obtain the users yet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;as part of &lt;/SPAN&gt;&lt;A href="http://jira.codehaus.org/browse/ACT-104" rel="nofollow noopener noreferrer"&gt;http://jira.codehaus.org/browse/ACT-104&lt;/A&gt;&lt;SPAN&gt; (Replace findXxx methods returning lists with query API), there will be an api offered that should look like this: identityService.createUserQuery().list();&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Sep 2010 09:32:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-valid-assignees-of-given-task/m-p/20273#M9438</guid>
      <dc:creator>tombaeyens</dc:creator>
      <dc:date>2010-09-17T09:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve valid assignees of given task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-valid-assignees-of-given-task/m-p/20274#M9439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;there is currently no way through our identity service to obtain the users yet.&lt;BR /&gt;&lt;BR /&gt;as part of &lt;A href="http://jira.codehaus.org/browse/ACT-104" rel="nofollow noopener noreferrer"&gt;http://jira.codehaus.org/browse/ACT-104&lt;/A&gt; (Replace findXxx methods returning lists with query API), there will be an api offered that should look like this: identityService.createUserQuery().list();&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Noted. I will watch this issue closely.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chee Kin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Sep 2010 14:33:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-valid-assignees-of-given-task/m-p/20274#M9439</guid>
      <dc:creator>limcheekin</dc:creator>
      <dc:date>2010-09-17T14:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve valid assignees of given task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-valid-assignees-of-given-task/m-p/20275#M9440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just found this thread from 2010, and now in 2017 I have the same question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get the list of candidates (groups and users) of an user task?&lt;/P&gt;&lt;P&gt;I found the object "UserTask" that contains two lists (candidateUsers and&amp;nbsp;candidateGroups), but I don't know how to return this object with TaskQuery.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2017 07:51:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-valid-assignees-of-given-task/m-p/20275#M9440</guid>
      <dc:creator>maqjav</dc:creator>
      <dc:date>2017-10-04T07:51:35Z</dc:date>
    </item>
  </channel>
</rss>

