<?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: Define content rule in a custom model? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/define-content-rule-in-a-custom-model/m-p/208991#M162121</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;what do I (additionally) need to do to make the script "visible"?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Feb 2009 13:41:24 GMT</pubDate>
    <dc:creator>fx3000se</dc:creator>
    <dc:date>2009-02-20T13:41:24Z</dc:date>
    <item>
      <title>Define content rule in a custom model?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/define-content-rule-in-a-custom-model/m-p/208988#M162118</link>
      <description>Can I define a (content) rule in a custom model xml file? E.g. define a custom folder type which has a rule doing something (preferably invoking a javascript) on all inbound items.If yes what is the xml-syntax?</description>
      <pubDate>Wed, 18 Feb 2009 14:46:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/define-content-rule-in-a-custom-model/m-p/208988#M162118</guid>
      <dc:creator>fx3000se</dc:creator>
      <dc:date>2009-02-18T14:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Define content rule in a custom model?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/define-content-rule-in-a-custom-model/m-p/208989#M162119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Check out the Records Management module for example of bootstrapping custom behaviours / content rules and custom model.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 21:50:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/define-content-rule-in-a-custom-model/m-p/208989#M162119</guid>
      <dc:creator>zaizi</dc:creator>
      <dc:date>2009-02-18T21:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: Define content rule in a custom model?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/define-content-rule-in-a-custom-model/m-p/208990#M162120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Took the RMS source code and adapted it. Now when the onCreateNode script should be executed I get:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Failed to create new space due to error: Failed to execute script 'alfresco/module/mymodule/script/onCreateNode_myModel.js': ReferenceError: "document" is not defined. (AlfrescoScript#2)&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;In bootstrap-context.xml I have the following code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;value&amp;gt;alfresco/module/mymodule/script/onCreateNode_myModel.js&amp;lt;/value&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;the js-script it is at the given path. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I use the corresponding line from the RMS module in my bootstrap-context.xml:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;value&amp;gt;alfresco/module/org.alfresco.module.RecordsManagement/script/onCreateNode_rmaFilePlan.js&amp;lt;/value&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;that script is found and executed…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2009 18:51:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/define-content-rule-in-a-custom-model/m-p/208990#M162120</guid>
      <dc:creator>fx3000se</dc:creator>
      <dc:date>2009-02-19T18:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Define content rule in a custom model?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/define-content-rule-in-a-custom-model/m-p/208991#M162121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;what do I (additionally) need to do to make the script "visible"?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 13:41:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/define-content-rule-in-a-custom-model/m-p/208991#M162121</guid>
      <dc:creator>fx3000se</dc:creator>
      <dc:date>2009-02-20T13:41:24Z</dc:date>
    </item>
  </channel>
</rss>

