<?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 Completed workflows for a document in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/completed-workflows-for-a-document/m-p/295226#M248356</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would like to use the REST API to return the completed workflows for a document. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The following works for me, it returns ALL the completed workflows - &lt;/SPAN&gt;&lt;A href="http://localhost:8080/alfresco/s/api/workflow-instances?state=completed" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/s/api/workflow-instances?state=completed&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But it will not work for specific document - &lt;/SPAN&gt;&lt;A href="http://localhost:8080/alfresco/s/api/node/workspace/SpacesStore/e3ebc28c-d100-4c1c-b488-2526fd8769e9/workflow-instances?state=completed" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/s/api/node/workspace/SpacesStore/e3ebc28c-d100-4c1c-b488-2526fd8769e9/workflow-instances?state=completed&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to modify the API so that I can use the 'state=completed' filter for a specific document as well. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this possible and if yes, where is the code located? (I haven't found it so far..)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Feb 2015 20:14:50 GMT</pubDate>
    <dc:creator>prachi379</dc:creator>
    <dc:date>2015-02-17T20:14:50Z</dc:date>
    <item>
      <title>Completed workflows for a document</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/completed-workflows-for-a-document/m-p/295226#M248356</link>
      <description>I would like to use the REST API to return the completed workflows for a document. The following works for me, it returns ALL the completed workflows - http://localhost:8080/alfresco/s/api/workflow-instances?state=completedBut it will not work for specific document - http://localhost:8080/alfresco/s</description>
      <pubDate>Tue, 17 Feb 2015 20:14:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/completed-workflows-for-a-document/m-p/295226#M248356</guid>
      <dc:creator>prachi379</dc:creator>
      <dc:date>2015-02-17T20:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Completed workflows for a document</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/completed-workflows-for-a-document/m-p/295227#M248357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Further usecase information -&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to create a new page which displays a list of ALL the workflows for the document. I would like to link this page to the workflows section in document details and have this page be visible to all users who have access to the document itself (and not just those who are a part of the workflow). I have been investigating and trying out ways to achieve this and the easiest way so far is to have the REST API work the way described above. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wanted to know where the code for these services is located, if anyone has a clue please let me know!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2015 17:45:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/completed-workflows-for-a-document/m-p/295227#M248357</guid>
      <dc:creator>prachi379</dc:creator>
      <dc:date>2015-02-20T17:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Completed workflows for a document</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/completed-workflows-for-a-document/m-p/295228#M248358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Answering my own question for anyone else looking for a solution - I was able to achieve this by creating a new web script to return the active as well as completed workflows. I setup the alfresco dev environment in eclipse to implement the web script controller. The existing web scripts are in the jar file alfresco-remote-api-5.0.a.jar and if you see the implementation of workflow-instances-for-node, things will be more clear.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I then used this web script in a page that looks similar to 'my-workflows' and linked to this page in document details.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 21:54:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/completed-workflows-for-a-document/m-p/295228#M248358</guid>
      <dc:creator>prachi379</dc:creator>
      <dc:date>2015-05-06T21:54:39Z</dc:date>
    </item>
  </channel>
</rss>

