<?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 How to read document from Alfresco community edition 5.2? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-read-document-from-alfresco-community-edition-5-2/m-p/40262#M16887</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am new to alfresco. This may be the basic query but please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is Upload text document which will be displayed in UI once it is approved by the supervisor. To achieve this we are using three folders&lt;/P&gt;&lt;P&gt;Draft - To upload&lt;/P&gt;&lt;P&gt;Pending - Pending for approval&lt;/P&gt;&lt;P&gt;Approved - Approved document&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reading the content from Approved folder using document id with the REST service as shown below URL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Default Sans Serif', Verdana, Arial, Helvetica, sans-serif; font-size: small;"&gt;&lt;A href="http://127.0.0.1:8080/alfresco/service/api/node/content/workspace/SpacesStore/1c9c1098-4a2d-46f0-b388-30afe2c8eeda?alf_ticket=1233" rel="nofollow noopener noreferrer"&gt;http://127.0.0.1:8080/alfresco/service/api/node/content/workspace/SpacesStore/1c9c1098-4a2d-46f0-b388-30afe2c8eeda?alf_ticket=1233&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Steps:&lt;/P&gt;&lt;P&gt;1. Editor will move the document from Draft folder to Pending&amp;nbsp;for approval.&lt;/P&gt;&lt;P&gt;2. Supervisor will check the document in Pending folder, once he&amp;nbsp;accepted through simple workflow, the document will be moved to Approved folder from Pending folder.&lt;/P&gt;&lt;P&gt;3. On the approved folder,we have one rule to copy the document from Approved&amp;nbsp;to Draft folder so that editor&amp;nbsp;can edit the document for second upload.&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; padding: 0px;"&gt;So here the problem is while copying the document id is getting changed so next time when supervisor approved the document we are not getting the updated content because document id is different for second document.&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; padding: 0px;"&gt;Please help how to resolve this conflict.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Default Sans Serif', Verdana, Arial, Helvetica, sans-serif; font-size: small;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Default Sans Serif', Verdana, Arial, Helvetica, sans-serif; font-size: small;"&gt;Muqthar&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Mar 2017 04:18:09 GMT</pubDate>
    <dc:creator>muqthar</dc:creator>
    <dc:date>2017-03-08T04:18:09Z</dc:date>
    <item>
      <title>How to read document from Alfresco community edition 5.2?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-read-document-from-alfresco-community-edition-5-2/m-p/40262#M16887</link>
      <description>I am new to alfresco. This may be the basic query but please help me.My requirement is Upload text document which will be displayed in UI once it is approved by the supervisor. To achieve this we are using three foldersDraft - To uploadPending - Pending for approvalApproved - Approved documentReadin</description>
      <pubDate>Wed, 08 Mar 2017 04:18:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-read-document-from-alfresco-community-edition-5-2/m-p/40262#M16887</guid>
      <dc:creator>muqthar</dc:creator>
      <dc:date>2017-03-08T04:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to read document from Alfresco community edition 5.2?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-read-document-from-alfresco-community-edition-5-2/m-p/40263#M16888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was following you right up until the last moment. This is what confused me: "so next time when supervisor approved the document we are not getting the updated content because document id is different for second document".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think what you mean is that whatever program is being used to make the REST call is not able to associate the second upload as being the same document that was previously seen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When documents are copied they will always get a new node reference. If you need an identifier that stays consistent across copies you should create one and store it on the document in a custom property. You could use the original node reference as a your permanent identifier, but you need to save it in a separate property.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To automatically copy the original node reference into your own property, you might consider using a custom &lt;A href="http://ecmarchitect.com/alfresco-developer-series-tutorials/behaviors/tutorial/tutorial.html" rel="nofollow noopener noreferrer"&gt;Behavior&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Mar 2017 06:27:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-read-document-from-alfresco-community-edition-5-2/m-p/40263#M16888</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2017-03-11T06:27:50Z</dc:date>
    </item>
  </channel>
</rss>

