<?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: Rest: how to reassign a task to a different user? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/rest-how-to-reassign-a-task-to-a-different-user/m-p/122379#M86192</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A href="http://activiti.org/userguide/index.html#N12B83" rel="nofollow noopener noreferrer"&gt;http://activiti.org/userguide/index.html#N12B83&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;yes, this is a RTFM. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But at least I was friendly enough to already provide a link &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Nov 2012 10:25:42 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2012-11-28T10:25:42Z</dc:date>
    <item>
      <title>Rest: how to reassign a task to a different user?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-how-to-reassign-a-task-to-a-different-user/m-p/122378#M86191</link>
      <description>How could I reassign a task to a different user using REST API?Thanks in advance.ByeFranco</description>
      <pubDate>Tue, 27 Nov 2012 17:00:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-how-to-reassign-a-task-to-a-different-user/m-p/122378#M86191</guid>
      <dc:creator>f_lombardo</dc:creator>
      <dc:date>2012-11-27T17:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Rest: how to reassign a task to a different user?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-how-to-reassign-a-task-to-a-different-user/m-p/122379#M86192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A href="http://activiti.org/userguide/index.html#N12B83" rel="nofollow noopener noreferrer"&gt;http://activiti.org/userguide/index.html#N12B83&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;yes, this is a RTFM. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But at least I was friendly enough to already provide a link &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2012 10:25:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-how-to-reassign-a-task-to-a-different-user/m-p/122379#M86192</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-11-28T10:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Rest: how to reassign a task to a different user?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-how-to-reassign-a-task-to-a-different-user/m-p/122380#M86193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;First of all, thank you for your answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I'll try to explain my problem better. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Suppose I assigned a task to a user (e.g. kermit) with the API call you mentioned. Then I want to revert this assignment, giving this same task to a different user (e.g. gonzo). When I call that API the second time, I get an error at line 64 of the TaskOperationResource class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is because in class ClaimTaskCmd we can see:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(!task.getAssignee().equals(userId)) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // When the task is already claimed by another user, throw exception. Otherwise, ignore&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // this, post-conditions of method already met.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; throw new ActivitiTaskAlreadyClaimedException(task.getId(), task.getAssignee())&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;So how can I override this behavior?&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;Bye&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Franco&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 08:28:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-how-to-reassign-a-task-to-a-different-user/m-p/122380#M86193</guid>
      <dc:creator>f_lombardo</dc:creator>
      <dc:date>2012-11-29T08:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Rest: how to reassign a task to a different user?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-how-to-reassign-a-task-to-a-different-user/m-p/122381#M86194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;By the way, I'guessing if it would be better to change line 41 of class TaskOperationResource, checking for null values of the entity parameter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bye&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Franco&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 08:43:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-how-to-reassign-a-task-to-a-different-user/m-p/122381#M86194</guid>
      <dc:creator>f_lombardo</dc:creator>
      <dc:date>2012-11-29T08:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Rest: how to reassign a task to a different user?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-how-to-reassign-a-task-to-a-different-user/m-p/122382#M86195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Franco,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you look at the latest version of TaskOperationResource? Because line 41 is an empty line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In your use case you first have to invoke the unclaim operation on the TaskOperationResource.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then the task can be assigned to another user.&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, 29 Nov 2012 10:36:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-how-to-reassign-a-task-to-a-different-user/m-p/122382#M86195</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2012-11-29T10:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: Rest: how to reassign a task to a different user?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-how-to-reassign-a-task-to-a-different-user/m-p/122383#M86196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry, I'm looking at ver 5.10 of TaskOperationResource.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I see that in the newest version of this class you introduced both the null pointer check and the unclaim operation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bye&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Franco&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 11:23:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-how-to-reassign-a-task-to-a-different-user/m-p/122383#M86196</guid>
      <dc:creator>f_lombardo</dc:creator>
      <dc:date>2012-11-29T11:23:00Z</dc:date>
    </item>
  </channel>
</rss>

