<?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: [SOLVED]Modifying file description/tags in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/solved-modifying-file-description-tags/m-p/280111#M233241</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;if you can update and add aspects I don't understand why you can't find something to update the description or tag. Any child of the bpm_package is a script node and has the API documented in the &amp;lt;a href="&lt;/SPAN&gt;&lt;A href="https://wiki.alfresco.com/wiki/4.0_JavaScript_API#ScriptNode_API" rel="nofollow noopener noreferrer"&gt;https://wiki.alfresco.com/wiki/4.0_JavaScript_API#ScriptNode_API&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;wiki&amp;lt;/a&amp;gt;. So to update a description you would use &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;var child = bpm_package.children[0];&lt;BR /&gt;child.properties["cm:description"] = "New Description";&lt;BR /&gt;child.save();&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;and for updateing tags &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;var child = bpm_package.childre[0];&lt;BR /&gt;child.setTags(["Tag 1", "Tag 2"]);&lt;SPAN class="line-numbers-rows"&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;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Aug 2013 14:34:10 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2013-08-23T14:34:10Z</dc:date>
    <item>
      <title>[SOLVED]Modifying file description/tags</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-modifying-file-description-tags/m-p/280110#M233240</link>
      <description>Hi,I'm new to Alfresco, and trying to implement an Advanced Workflowfor for past month. Currently I'm struggling to find a way to update the description and tags of a file by executing a script inside a process definition. Is there a way to this through:bpm_package.children[0]‍i can add aspects and</description>
      <pubDate>Fri, 23 Aug 2013 08:00:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-modifying-file-description-tags/m-p/280110#M233240</guid>
      <dc:creator>ldziedzic</dc:creator>
      <dc:date>2013-08-23T08:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: [SOLVED]Modifying file description/tags</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-modifying-file-description-tags/m-p/280111#M233241</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;if you can update and add aspects I don't understand why you can't find something to update the description or tag. Any child of the bpm_package is a script node and has the API documented in the &amp;lt;a href="&lt;/SPAN&gt;&lt;A href="https://wiki.alfresco.com/wiki/4.0_JavaScript_API#ScriptNode_API" rel="nofollow noopener noreferrer"&gt;https://wiki.alfresco.com/wiki/4.0_JavaScript_API#ScriptNode_API&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;wiki&amp;lt;/a&amp;gt;. So to update a description you would use &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;var child = bpm_package.children[0];&lt;BR /&gt;child.properties["cm:description"] = "New Description";&lt;BR /&gt;child.save();&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;and for updateing tags &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;var child = bpm_package.childre[0];&lt;BR /&gt;child.setTags(["Tag 1", "Tag 2"]);&lt;SPAN class="line-numbers-rows"&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;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2013 14:34:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-modifying-file-description-tags/m-p/280111#M233241</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2013-08-23T14:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: [SOLVED]Modifying file description/tags</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-modifying-file-description-tags/m-p/280112#M233242</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;Guess i wasn't looking in the right place. Thanks for clearing this out, works just fine !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Leszek&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2013 14:59:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-modifying-file-description-tags/m-p/280112#M233242</guid>
      <dc:creator>ldziedzic</dc:creator>
      <dc:date>2013-08-23T14:59:16Z</dc:date>
    </item>
  </channel>
</rss>

