<?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: How to rename space and content from within a workflow? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-rename-space-and-content-from-within-a-workflow/m-p/175515#M128645</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To rename the space name is not a mistery. It is just something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;space.properties["cn:name"] = "the-new-name";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;space.save();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;all you need is to get hold of the space. If the space is the space containing the document, probably is something like;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;bpm_package.properties["cn:name"] =&amp;nbsp; "the-new-name";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;bpm_package.save();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;to change the name of the document is similar:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;bpm_package.children[0].properties["cn:name"] =&amp;nbsp; "Blah";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;bpm_package.children[0].save();&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jun 2008 17:44:33 GMT</pubDate>
    <dc:creator>mabayona</dc:creator>
    <dc:date>2008-06-30T17:44:33Z</dc:date>
    <item>
      <title>How to rename space and content from within a workflow?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-rename-space-and-content-from-within-a-workflow/m-p/175513#M128643</link>
      <description>Hello,I am new advanced workflows and I cannot figure out how to rename a piece of content or a the parent space of a piece of content from within a workflow. I've tried this inside of my workflow&amp;lt;action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;e</description>
      <pubDate>Mon, 30 Jun 2008 14:30:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-rename-space-and-content-from-within-a-workflow/m-p/175513#M128643</guid>
      <dc:creator>jarrett</dc:creator>
      <dc:date>2008-06-30T14:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to rename space and content from within a workflow?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-rename-space-and-content-from-within-a-workflow/m-p/175514#M128644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Turns out this works for changing the name of a document &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;bpm_package.children[0].properties["ygrd:DocumentTitle"] =&amp;nbsp; "Blah";&lt;BR /&gt;bpm_package.children[0].save();&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;will change the title of the document. changing the title of the space is still a bit of a mystery, also change the name (not the title) of a document seems to be a hassle too. I am looking for the simplest way to keep the name of the document with the correct file extention.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 16:32:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-rename-space-and-content-from-within-a-workflow/m-p/175514#M128644</guid>
      <dc:creator>jarrett</dc:creator>
      <dc:date>2008-06-30T16:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to rename space and content from within a workflow?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-rename-space-and-content-from-within-a-workflow/m-p/175515#M128645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To rename the space name is not a mistery. It is just something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;space.properties["cn:name"] = "the-new-name";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;space.save();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;all you need is to get hold of the space. If the space is the space containing the document, probably is something like;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;bpm_package.properties["cn:name"] =&amp;nbsp; "the-new-name";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;bpm_package.save();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;to change the name of the document is similar:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;bpm_package.children[0].properties["cn:name"] =&amp;nbsp; "Blah";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;bpm_package.children[0].save();&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 17:44:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-rename-space-and-content-from-within-a-workflow/m-p/175515#M128645</guid>
      <dc:creator>mabayona</dc:creator>
      <dc:date>2008-06-30T17:44:33Z</dc:date>
    </item>
  </channel>
</rss>

