<?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: Accessing parent folder of a document in workflow script in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/accessing-parent-folder-of-a-document-in-workflow-script/m-p/285150#M238280</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I resolved the issue by simply using document.parent to get access to the parent folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I had not figured out was that the document is an object of the ScriptNode API &lt;/SPAN&gt;&lt;A href="http://docs.alfresco.com/4.2/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Freferences%2FAPI-JS-ScriptNode.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/4.2/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Freferences%2FAPI-JS-ScriptNode.html&lt;/A&gt;&lt;SPAN&gt;. In this API, the parent command can be used to access the parent node.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Apr 2014 11:06:47 GMT</pubDate>
    <dc:creator>ssdev</dc:creator>
    <dc:date>2014-04-09T11:06:47Z</dc:date>
    <item>
      <title>Accessing parent folder of a document in workflow script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-parent-folder-of-a-document-in-workflow-script/m-p/285149#M238279</link>
      <description>Hi,I have a custom workflow in which I run the following script&amp;lt;activiti:executionListener event="take" class="org.alfresco.repo.workflow.activiti.listener.ScriptExecutionListener"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:field name="script"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:string&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var document = bpm_package.chi</description>
      <pubDate>Wed, 09 Apr 2014 09:48:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-parent-folder-of-a-document-in-workflow-script/m-p/285149#M238279</guid>
      <dc:creator>ssdev</dc:creator>
      <dc:date>2014-04-09T09:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing parent folder of a document in workflow script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-parent-folder-of-a-document-in-workflow-script/m-p/285150#M238280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I resolved the issue by simply using document.parent to get access to the parent folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I had not figured out was that the document is an object of the ScriptNode API &lt;/SPAN&gt;&lt;A href="http://docs.alfresco.com/4.2/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Freferences%2FAPI-JS-ScriptNode.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/4.2/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Freferences%2FAPI-JS-ScriptNode.html&lt;/A&gt;&lt;SPAN&gt;. In this API, the parent command can be used to access the parent node.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 11:06:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-parent-folder-of-a-document-in-workflow-script/m-p/285150#M238280</guid>
      <dc:creator>ssdev</dc:creator>
      <dc:date>2014-04-09T11:06:47Z</dc:date>
    </item>
  </channel>
</rss>

