<?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 Replace a file/content in a space during simple-workflow in Alfresco in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/replace-a-file-content-in-a-space-during-simple-workflow-in/m-p/306540#M259670</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using Alfresco 4.0.e version, and i am facing a problem in simple workflow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Problem Description: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I created a Folders "Draft" and "Approved" and added "simple-workflow" to Draft folder in Rule. First time file was copying to Approved folder based on user approval and second time if user edited existing file in Draft folder again workflow will create for file and if user approved, it was giving error "File already exists". Please suggest how to resolve this problem. This was very urgent for my project&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Janardhan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 May 2013 12:19:11 GMT</pubDate>
    <dc:creator>janardhan1982</dc:creator>
    <dc:date>2013-05-08T12:19:11Z</dc:date>
    <item>
      <title>Replace a file/content in a space during simple-workflow in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/replace-a-file-content-in-a-space-during-simple-workflow-in/m-p/306540#M259670</link>
      <description>Hi ,I am using Alfresco 4.0.e version, and i am facing a problem in simple workflow.Problem Description: I created a Folders "Draft" and "Approved" and added "simple-workflow" to Draft folder in Rule. First time file was copying to Approved folder based on user approval and second time if user edite</description>
      <pubDate>Wed, 08 May 2013 12:19:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/replace-a-file-content-in-a-space-during-simple-workflow-in/m-p/306540#M259670</guid>
      <dc:creator>janardhan1982</dc:creator>
      <dc:date>2013-05-08T12:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Replace a file/content in a space during simple-workflow in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/replace-a-file-content-in-a-space-during-simple-workflow-in/m-p/306541#M259671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So your requirement is it should replace the existing file right?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Check out this thread &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://forums.alfresco.com/forum/end-user-discussions/alfresco-share/duplicate-files-and-update-06192012-1629" rel="nofollow noopener noreferrer"&gt;https://forums.alfresco.com/forum/end-user-discussions/alfresco-share/duplicate-files-and-update-06192012-1629&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 14:59:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/replace-a-file-content-in-a-space-during-simple-workflow-in/m-p/306541#M259671</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2013-05-08T14:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Replace a file/content in a space during simple-workflow in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/replace-a-file-content-in-a-space-during-simple-workflow-in/m-p/306542#M259672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;HI Mitpatoliya,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I gone through this &lt;/SPAN&gt;&lt;A href="https://forums.alfresco.com/forum/end-user-discussions/alfresco-share/duplicate-files-and-update-06192012-1629" rel="nofollow noopener noreferrer"&gt;https://forums.alfresco.com/forum/end-user-discussions/alfresco-share/duplicate-files-and-update-06192012-1629&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and i identified the below comments.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Well if you want to do with the behavior you can bind the behavior to oncontentupdate policy.and place the logic of replacing the duplicate copy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to go for the alternate approach one way is via rule.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Create a rule which will create a copy of the any new document at specific location.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Create one more rule which will be invoked on the content update and will execute a script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That script will search in for the duplicate copy of the document which is going to be updated delete the copy and place the new copy over there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you please send java script code for deleting existing file in alfresco space&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Janardhan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 13:13:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/replace-a-file-content-in-a-space-during-simple-workflow-in/m-p/306542#M259672</guid>
      <dc:creator>janardhan1982</dc:creator>
      <dc:date>2013-05-13T13:13:09Z</dc:date>
    </item>
  </channel>
</rss>

