<?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 call for delegate task in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/rest-call-for-delegate-task/m-p/179181#M132311</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is more a general REST-question, rather than an Activiti one - but here's my 2 cents:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to follow RESTfull principles, you need to execute a PUT on a resource, with a body containing the updates state of the resource. Since you're doing an 'action' on a resource (not creating one and not really explicit ally updating one) the 100% RESTfull approach won't cut it here. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What we do in Activiti REST is using a POST on the task-resource (see user guide):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;POST runtime/tasks/{taskId}&lt;BR /&gt;{ &lt;BR /&gt;&amp;nbsp; "action" : "delegate",&lt;BR /&gt;&amp;nbsp; "assignee" : "userToDelegateTo"&lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;The request-body contains the action to execute and any other parameters you need. The URL remains clean (doesn't include the action) and has a clear indication of what entity instance to perform the action on…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Jul 2014 07:20:15 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2014-07-31T07:20:15Z</dc:date>
    <item>
      <title>Rest call for delegate task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-call-for-delegate-task/m-p/179180#M132310</link>
      <description>&amp;nbsp;&amp;nbsp;&amp;nbsp;@RequestMapping(value = "/delegateTask/{taskId}", method = RequestMethod.PUT)&amp;nbsp;&amp;nbsp;&amp;nbsp;@ResponseBody&amp;nbsp;&amp;nbsp;&amp;nbsp;public StatusDetails delegateTask(&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;@PathVariable("taskId") String planItemAggregateId,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;@RequestParam("userId") String userId,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;@RequestParam("comment") String comment) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Sta</description>
      <pubDate>Thu, 31 Jul 2014 06:40:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-call-for-delegate-task/m-p/179180#M132310</guid>
      <dc:creator>priyankam</dc:creator>
      <dc:date>2014-07-31T06:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Rest call for delegate task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-call-for-delegate-task/m-p/179181#M132311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is more a general REST-question, rather than an Activiti one - but here's my 2 cents:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to follow RESTfull principles, you need to execute a PUT on a resource, with a body containing the updates state of the resource. Since you're doing an 'action' on a resource (not creating one and not really explicit ally updating one) the 100% RESTfull approach won't cut it here. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What we do in Activiti REST is using a POST on the task-resource (see user guide):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;POST runtime/tasks/{taskId}&lt;BR /&gt;{ &lt;BR /&gt;&amp;nbsp; "action" : "delegate",&lt;BR /&gt;&amp;nbsp; "assignee" : "userToDelegateTo"&lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;The request-body contains the action to execute and any other parameters you need. The URL remains clean (doesn't include the action) and has a clear indication of what entity instance to perform the action on…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 07:20:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-call-for-delegate-task/m-p/179181#M132311</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2014-07-31T07:20:15Z</dc:date>
    </item>
  </channel>
</rss>

