<config evaluator="string-compare" condition="DocumentLibrary">
<types>
<type name="cm:content">
<subtype name="dgs:meuTipoDocumental" />
</type>
<type name="dgs:ACB">
<subtype name="dgs:DEF" />
</type>
</types>
<type name="dgs:BASE">
<title>Tipo básico de documento</title>
<parent>cm:content</parent>
<properties>
<property name="dgs:prop01">
<title>Propriedade compartilhada</title>
<description>Propriedade compartilhada entres os tipos documentais ABC e DEF</description>
<type>d:text</type>
</property>
</properties>
</type>
<type name="dgs:ABC">
<title>ABC</title>
<!– Note que o tipo ABC tem o pai como sendo BASE –>
<parent>dgs:BASE</parent>
<properties>
<property name="dgs:propABC01">
<title>Prop ABC 01</title>
<type>d:text</type>
</property>
</properties>
</type>
<type name="dgs:DEF">
<title>DEF</title>
<!– Note que o tipo DEF tem o pai como sendo BASE –>
<parent>dgs:BASE</parent>
<properties>
<property name="dgs:propDEF01">
<title>Prop DEF 01</title>
<type>d:text</type>
</property>
</properties>
</type>
<types>
<type name="dgs:BASE">
<subtype name="dgs:ABC">Tipo ABC</subtype>
<subtype name="dgs:DEF">Tipo DEF</subtype>
</type>
</types>
public void init() {
JavaBehaviour javaBehaviour = new JavaBehaviour(this, OnSetNodeTypePolicy.QNAME.getLocalName(), NotificationFrequency.EVERY_EVENT);
this.policyComponent.bindClassBehaviour(OnSetNodeTypePolicy.QNAME, CUSTOM_TYPE, javaBehaviour);
}
@Override
public void onSetNodeType(NodeRef nodeRef, QName oldType, QName newType) {
//Criar Metodo para iniciar a execução do script
}
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.