08-17-2016 01:40 PM
08-25-2016 12:18 AM
<bean id="onCreateRatingNode" class="org.alfresco.repo.policy.registration.ClassPolicyRegistration" parent="policyRegistration">
<property name="policyName">
<value>{http://www.alfresco.org}onCreateNode</value>
</property>
<property name="className">
<!– <value>{http://www.someco.com/model/ratings/1.0}rating</value> –>
<value>{http://www.alfresco.org/model/site/1.0}site</value>
</property>
<property name="behaviour">
<bean class="org.alfresco.repo.jscript.ScriptBehaviour" parent="scriptBehaviour">
<property name="location">
<bean class="org.alfresco.repo.jscript.ClasspathScriptLocation">
<constructor-arg>
<!– <value>alfresco/module/behavior-tutorial-repo/scripts/onCreateRating.js</value> –>
<value>alfresco/module/behavior-tutorial-repo/scripts/onCreateSite.js</value>
</constructor-arg>
</bean>
</property>
</bean>
</property>
</bean>
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.