<?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: OnCreateNode policy and archiveStore in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/oncreatenode-policy-and-archivestore/m-p/213023#M166153</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You are correct&amp;nbsp; that onCreateNode is called for the new archive store node.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should be able to just check which store the node is being created in and then just don't create subfolders for those in the archive store.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think you can do something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;if (StoreRef.PROTOCOL_WORKSPACE.equals(childAssocRef.getChildRef().getStoreRef().getProtocol())) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Create subfolders, etc&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Mar 2010 21:18:43 GMT</pubDate>
    <dc:creator>tfrith</dc:creator>
    <dc:date>2010-03-17T21:18:43Z</dc:date>
    <item>
      <title>OnCreateNode policy and archiveStore</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/oncreatenode-policy-and-archivestore/m-p/213022#M166152</link>
      <description>I have ran in to an interesting problem. I have created a policy that gets fired upon onCreateNode of a custom content type (folder). This triggers the creation of some subfolders in my newly created space. This is the relevant code for my implementation:&amp;nbsp;&amp;nbsp;&amp;nbsp;public void onCreateNode(ChildAssociationR</description>
      <pubDate>Thu, 18 Feb 2010 15:52:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/oncreatenode-policy-and-archivestore/m-p/213022#M166152</guid>
      <dc:creator>billerby</dc:creator>
      <dc:date>2010-02-18T15:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: OnCreateNode policy and archiveStore</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/oncreatenode-policy-and-archivestore/m-p/213023#M166153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You are correct&amp;nbsp; that onCreateNode is called for the new archive store node.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should be able to just check which store the node is being created in and then just don't create subfolders for those in the archive store.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think you can do something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;if (StoreRef.PROTOCOL_WORKSPACE.equals(childAssocRef.getChildRef().getStoreRef().getProtocol())) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Create subfolders, etc&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Mar 2010 21:18:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/oncreatenode-policy-and-archivestore/m-p/213023#M166153</guid>
      <dc:creator>tfrith</dc:creator>
      <dc:date>2010-03-17T21:18:43Z</dc:date>
    </item>
  </channel>
</rss>

