<?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: Modifying users of an active task in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/modifying-users-of-an-active-task/m-p/25824#M11177</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can call the TaskService set assignee method.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.activiti.org/javadocs/org/activiti/engine/taskservice#setAssignee-java.lang.String-java.lang.String-" title="https://www.activiti.org/javadocs/org/activiti/engine/taskservice#setAssignee-java.lang.String-java.lang.String-" rel="nofollow noopener noreferrer"&gt;TaskService (Activiti - Engine 5.22.0 API)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can get the task and update it's assignee and save the changes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Task task = taskService.createTaskQuery().taskId("123").singleResult();&lt;/P&gt;&lt;P&gt;task.setAssignee("newassignee");&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;taskService.save(task);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can set to null if you want to unset the assignee. And in case of claimed tasks you can use&amp;nbsp;&lt;A class="link-titled" href="https://www.activiti.org/javadocs/org/activiti/engine/taskservice#unclaim-java.lang.String-" title="https://www.activiti.org/javadocs/org/activiti/engine/taskservice#unclaim-java.lang.String-" rel="nofollow noopener noreferrer"&gt;TaskService (Activiti - Engine 5.22.0 API)&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jul 2018 12:53:22 GMT</pubDate>
    <dc:creator>bassam_al-saror</dc:creator>
    <dc:date>2018-07-11T12:53:22Z</dc:date>
    <item>
      <title>Modifying users of an active task</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/modifying-users-of-an-active-task/m-p/25821#M11174</link>
      <description>Hi,&amp;nbsp;I have a requirement where I want to&amp;nbsp;remove/add/update&amp;nbsp;the assignee's of an active task. The assignee which i want to modify could also be in pending state.&amp;nbsp;I am using 5.16.4 version of Activiti. My question is, it is possible to do in 5.16.4&amp;nbsp;version of Activiti, if not, is such feature added in</description>
      <pubDate>Fri, 06 Jul 2018 09:04:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/modifying-users-of-an-active-task/m-p/25821#M11174</guid>
      <dc:creator>khushboo_gupta1</dc:creator>
      <dc:date>2018-07-06T09:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying users of an active task</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/modifying-users-of-an-active-task/m-p/25822#M11175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure about 5.1.6.4 but in latest version you can modify the assignee of an active task.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2018 12:20:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/modifying-users-of-an-active-task/m-p/25822#M11175</guid>
      <dc:creator>bassam_al-saror</dc:creator>
      <dc:date>2018-07-11T12:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying users of an active task</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/modifying-users-of-an-active-task/m-p/25823#M11176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, in the latest version, is it possible to add/remove or replace an assignee from an active task?&lt;/P&gt;&lt;P&gt;If yes, can you please point to some examples on how it can be done.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2018 12:41:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/modifying-users-of-an-active-task/m-p/25823#M11176</guid>
      <dc:creator>khushboo_gupta1</dc:creator>
      <dc:date>2018-07-11T12:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying users of an active task</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/modifying-users-of-an-active-task/m-p/25824#M11177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can call the TaskService set assignee method.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.activiti.org/javadocs/org/activiti/engine/taskservice#setAssignee-java.lang.String-java.lang.String-" title="https://www.activiti.org/javadocs/org/activiti/engine/taskservice#setAssignee-java.lang.String-java.lang.String-" rel="nofollow noopener noreferrer"&gt;TaskService (Activiti - Engine 5.22.0 API)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can get the task and update it's assignee and save the changes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Task task = taskService.createTaskQuery().taskId("123").singleResult();&lt;/P&gt;&lt;P&gt;task.setAssignee("newassignee");&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;taskService.save(task);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can set to null if you want to unset the assignee. And in case of claimed tasks you can use&amp;nbsp;&lt;A class="link-titled" href="https://www.activiti.org/javadocs/org/activiti/engine/taskservice#unclaim-java.lang.String-" title="https://www.activiti.org/javadocs/org/activiti/engine/taskservice#unclaim-java.lang.String-" rel="nofollow noopener noreferrer"&gt;TaskService (Activiti - Engine 5.22.0 API)&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2018 12:53:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/modifying-users-of-an-active-task/m-p/25824#M11177</guid>
      <dc:creator>bassam_al-saror</dc:creator>
      <dc:date>2018-07-11T12:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying users of an active task</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/modifying-users-of-an-active-task/m-p/25825#M11178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Bassam,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have one more question - "How can I achieve this for a multi-user task". Suppose there are three assignees in a currently active sequential task :&amp;nbsp; "User1", "User2", "User3".&amp;nbsp;Of which,&amp;nbsp;User1 is currently active and I want to remove "User1" and "User2" and add new assignee "User4".&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2018 09:27:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/modifying-users-of-an-active-task/m-p/25825#M11178</guid>
      <dc:creator>khushboo_gupta1</dc:creator>
      <dc:date>2018-08-03T09:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying users of an active task</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/modifying-users-of-an-active-task/m-p/25826#M11179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the user tasks have already been created then it will be the same approach querying for those tasks and updating their assignees. If you are talking about user tasks that&amp;nbsp;haven't been created yet that's something different.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2018 09:39:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/modifying-users-of-an-active-task/m-p/25826#M11179</guid>
      <dc:creator>bassam_al-saror</dc:creator>
      <dc:date>2018-08-03T09:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying users of an active task</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/modifying-users-of-an-active-task/m-p/25827#M11180</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In your example you use the method&amp;nbsp;&lt;SPAN&gt;task.setAssignee("newassignee"); I have the same question, but what I have as input is the "ExternalID" of the user, and am struggling to find a way to get the "userId" to use the setter. Is this possible? I mean, to assign a task to someone with ExternalId="xyz" ? Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 15:54:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/modifying-users-of-an-active-task/m-p/25827#M11180</guid>
      <dc:creator>jose_leon_coupa</dc:creator>
      <dc:date>2020-09-07T15:54:21Z</dc:date>
    </item>
  </channel>
</rss>

