As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<?xml version="1.0" encoding="UTF-8"?> <!– Definition of new Model –> <model name="sc:somecomodel" xmlns="http://www.alfresco.org/model/dictionary/1.0"> <!– Optional meta-data about the model –> <description>TestCustomType</description> <author>ELCA</author> <version>1.0</version> <!– Imports are required to allow references to definitions in other models –> <imports> <!– Import Alfresco Dictionary Definitions –> <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d" /> <!– Import Alfresco Content Domain Model Definitions –> <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm" /> </imports> <!– Introduction of new namespaces defined by this model –> <namespaces> <namespace uri="http://www.someco.com/model/content/1.0" prefix="sc" /> </namespaces> <constraints> <constraint name="sc:constraintDocumentType" type="LIST"> <parameter name="allowedValues"> <list> <value>Value A</value> <value>Value B</value> <value>Value C</value> <value>Value D</value> </list> </parameter> </constraint> <constraint name="sc:constraintFormationType" type="LIST"> <parameter name="allowedValues"> <list> <value>Value A</value> <value>Value B</value> <value>Value C</value> <value>Value D</value> </list> </parameter> </constraint> </constraints> <types> <type name="sc:doc"> <title>TestCustomType</title> <parent>cm:content</parent> <properties> <property name="sc:name"> <type>d:text</type> <mandatory>true</mandatory> </property> <property name="sc:firstname"> <type>d:text</type> <mandatory>true</mandatory> </property> <property name="sc:birthdate"> <type>d:date</type> <mandatory>true</mandatory> </property> <property name="sc:archiveDate"> <type>d:date</type> <mandatory>false</mandatory> </property> <property name="sc:documentType"> <type>d:text</type> <mandatory>true</mandatory> <constraints> <constraint ref="sc:constraintDocumentType" /> </constraints> </property> <property name="sc:formationType"> <type>d:text</type> <mandatory>true</mandatory> <constraints> <constraint ref="sc:constraintFormationType" /> </constraints> </property> <property name="sc:documentDate"> <type>d:date</type> <mandatory>true</mandatory> </property> <property name="sc:studentNo"> <type>d:text</type> <mandatory>true</mandatory> </property> </properties> <mandatory-aspects> <aspect>cm:generalclassifiable</aspect> </mandatory-aspects> </type> </types> </model>