<?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 [REST API] Add url to a task in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/rest-api-add-url-to-a-task/m-p/99404#M68716</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello everybody,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;maybe i'm asking a stupid question, but i cannot find the solution to my problem…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have to attach an URL to a task of mine (taskId = 13780).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I followed &lt;/SPAN&gt;&lt;A href="http://activiti.org/userguide/#N12BF1" rel="nofollow noopener noreferrer"&gt;http://activiti.org/userguide/#N12BF1&lt;/A&gt;&lt;SPAN&gt; and i made the request:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;url : &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;A href="http://my_server_ip/activiti-rest/service/task/13780/url" rel="nofollow noopener noreferrer"&gt;http://my_server_ip/activiti-rest/service/task/13780/url&lt;/A&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;method: &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;PUT&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;content: &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;{"name":"Google","description":"Good search site","url":"&lt;A _jive_internal="true" href="https://community.alfresco.com/www.google.com&amp;quot;,&amp;quot;type&amp;quot;:&amp;quot;url" rel="nofollow noopener noreferrer"&gt;http://www.google.com','type':'url&lt;/A&gt;"}&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The result code was 200 with content&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;{"name":"Google","id":"13862","type":"url","description":"Good search site","url":"&lt;A href="http://www.google.com" rel="nofollow noopener noreferrer"&gt;http://www.google.com&lt;/A&gt;"}&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;but when i go to see my task's attachments i can see nothing!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm sure about the task's ID and tomcat's log reports no errors.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where am I wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Oct 2012 13:58:32 GMT</pubDate>
    <dc:creator>luca_trioschi</dc:creator>
    <dc:date>2012-10-03T13:58:32Z</dc:date>
    <item>
      <title>[REST API] Add url to a task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-api-add-url-to-a-task/m-p/99404#M68716</link>
      <description>Hello everybody,maybe i'm asking a stupid question, but i cannot find the solution to my problem…I have to attach an URL to a task of mine (taskId = 13780).I followed http://activiti.org/userguide/#N12BF1 and i made the request:url : http://my_server_ip/activiti-rest/service/task/13780/url‍method: P</description>
      <pubDate>Wed, 03 Oct 2012 13:58:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-api-add-url-to-a-task/m-p/99404#M68716</guid>
      <dc:creator>luca_trioschi</dc:creator>
      <dc:date>2012-10-03T13:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: [REST API] Add url to a task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-api-add-url-to-a-task/m-p/99405#M68717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can't see anything wrong with that. Did you check the database contents?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 06:46:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-api-add-url-to-a-task/m-p/99405#M68717</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-10-04T06:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: [REST API] Add url to a task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-api-add-url-to-a-task/m-p/99406#M68718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi jbarrez, thank you for your answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sure I did…all attachments are there. In the table "ACT_HI_ATTACHMENT" the tuple is correctly stored but in my task I still see nothing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There also one more question i'd like to ask…is possible to attach a document/url to a process instance (not to a task as i was doing) via REST API?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is also there an API to get the attachment stream from its ID (i added a a PDF file as content to the process instance via activiti-explorer…is there a way to get the file via REST API having the attachment ID) ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 07:44:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-api-add-url-to-a-task/m-p/99406#M68718</guid>
      <dc:creator>luca_trioschi</dc:creator>
      <dc:date>2012-10-04T07:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: [REST API] Add url to a task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-api-add-url-to-a-task/m-p/99407#M68719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Sure I did…all attachments are there. In the table "ACT_HI_ATTACHMENT" the tuple is correctly stored but in my task I still see nothing.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;How do you try to retrieve the attachment? Did you already try the Java api?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;There also one more question i'd like to ask…is possible to attach a document/url to a process instance (not to a task as i was doing) via REST API?&lt;BR /&gt;Is also there an API to get the attachment stream from its ID (i added a a PDF file as content to the process instance via activiti-explorer…is there a way to get the file via REST API having the attachment ID) ?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm afraid the REST API is not yet in sync with the Java API. Therefore, I created &lt;/SPAN&gt;&lt;A href="http://jira.codehaus.org/browse/ACT-1396" rel="nofollow noopener noreferrer"&gt;http://jira.codehaus.org/browse/ACT-1396&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 06:59:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-api-add-url-to-a-task/m-p/99407#M68719</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-10-05T06:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: [REST API] Add url to a task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-api-add-url-to-a-task/m-p/99408#M68720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you again, jbarrez.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;How do you try to retrieve the attachment? Did you already try the Java api?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;I tryed to retrieve the attachments list with the REST API (&lt;/SPAN&gt;&lt;A href="http://activiti.org/userguide/#N12B3B" rel="nofollow noopener noreferrer"&gt;http://activiti.org/userguide/#N12B3B&lt;/A&gt;&lt;SPAN&gt;) but "attachmentList" is empty. Also looking for them in the activiti-explorer I can see no one of them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have not used the Java API because activiti stands on a virtual machine and I have to handle the workflow from a web application standing on a different virtual machine, so the REST API are the best way to archieve this (I think). I Know i can make my own APIs and call them for my purpose, but I prefer to have this as "plan B" (or even better "plan C" &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt; ).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm afraid the REST API is not yet in sync with the Java API. Therefore, I created &lt;A href="http://jira.codehaus.org/browse/ACT-1396" rel="nofollow noopener noreferrer"&gt;http://jira.codehaus.org/browse/ACT-1396&lt;/A&gt;.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Thank you for creating this thread.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 07:49:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-api-add-url-to-a-task/m-p/99408#M68720</guid>
      <dc:creator>luca_trioschi</dc:creator>
      <dc:date>2012-10-05T07:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: [REST API] Add url to a task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-api-add-url-to-a-task/m-p/99409#M68721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay, that does sound like a bug then .. could you create a jira issue for it describing exactly how you test it?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 12:53:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-api-add-url-to-a-task/m-p/99409#M68721</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-10-11T12:53:51Z</dc:date>
    </item>
  </channel>
</rss>

