02-18-2008 02:04 AM
<?xml version="1.0" encoding="UTF-8"?>
<!– Definition of new Model –>
<model name="ps:ps" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!– Optional meta-data about the model –>
<description/>
<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.test.com/model/content/1.0" prefix="ps"/>
</namespaces>
<types>
<type name="ps:xs">
<parent>cm:content</parent>
<mandatory-aspects>
<aspect>cm:generalclassifiable</aspect>
<aspect>cm:versionable</aspect>
</mandatory-aspects>
</type>
<type name="ps:bxs">
<parent>ps:xs</parent>
</type>
<type name="ps:prof">
<parent>cm:content</parent>
<properties>
<property name="ps:Id">
<type>d:text</type>
<mandatory>true</mandatory>
</property>
</properties>
<mandatory-aspects>
<aspect>cm:generalclassifiable</aspect>
<aspect>cm:versionable</aspect>
</mandatory-aspects>
</type>
<type name="ps:bprof">
<parent>ps:prof</parent>
<properties>
<!– I want this to have a default value. "default" tag is not supported. It gives an exception. –>
<property name="ps:product">
<type>d:text</type>
<mandatory>true</mandatory>
</property>
</properties>
<!– I want this as a mandatory association. –>
<associations>
<child-association name="ps:bxs_link">
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>ps:bxs</class>
<mandatory>false</mandatory>
<many>false</many>
</target>
</child-association>
</associations>
</type>
</types>
</model>
Please correct the errors below then click OK.
A system error happened during the operation: Unknown Exception in Transaction.
stack: ERROR [org.alfresco.repo.node.integrity.IntegrityChecker] Found 1 integrity violations:
The association target multiplicity has been violated:
Source Node: workspace://SpacesStore/2571013d-ddee-11dc-a9c3-475304f6f2e8
Association: Association[ class=ClassDef[name={http://www.test.com/model/content/1.0}bprof], name={http://www.test.com/model/content/1.0}bxs_link, target class={http://www.test.com/model/content/1.0}bxs, source role=null, target role=null]
Required target Multiplicity: 1..1
Actual target Multiplicity: 0
12:23:02,290 ERROR [org.alfresco.web.ui.common.Utils] A system error happened during the operation: Unknown Exception in Transaction.
Failed to parse model
09-08-2008 04:17 AM
07-01-2009 04:50 AM
07-01-2009 06:11 AM
09-23-2011 11:45 AM
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.