cancel
Showing results for 
Search instead for 
Did you mean: 

Error throwing when I add mandatory aspect in type definitio

bisana
Champ on-the-rise
Champ on-the-rise
Hi All
  I am trying out with Document Types and Aspect,
I  have created one document type, but  when I add mandatory aspect it gives error, may be I am not giving it on the correct order
My document type definition is as

<type name="sc:mydept">
<title>My Documents</title>
<parent>cm:content</parent>
<properties>
    <property name="sc:lddoctype">
        <type>d:text</type>
        <mandatory>true</mandatory>
     <constraints>
            <constraint ref="sc:LDconstraints" />
        </constraints>
   </property>
   <property name="sc:purpose">
<type>d:text</type>
<mandatory>true</mandatory>
  <constraints>
<constraint ref="sc:purposeList" />
</constraints>
</property>
  </properties>
</type>

I want to add the mandatory aspect  in the document type, whatever order I try out I am getting error
  
<mandatory-aspects>
<aspect>cm:generalclassifiable</aspect>
</mandatory-aspects>
I would like to request for advice
Help is appreciated
Thanks
Joseph John
2 REPLIES 2

sglover
Champ in-the-making
Champ in-the-making
What is the error you are getting? What does your complete type definition look like? According to the Alfresco model schema (modelSchema.xsd) the mandatory-aspects element must come last in  the type definition, like this:


<type name="sc:mydept">
<title>My Documents</title>
<parent>cm:content</parent>
<properties>
    <property name="sc:lddoctype">
        <type>d:text</type>
        <mandatory>true</mandatory>
     <constraints>
            <constraint ref="sc:LDconstraints" />
        </constraints>
   </property>
   <property name="sc:purpose">
<type>d:text</type>
<mandatory>true</mandatory>
  <constraints>
<constraint ref="sc:purposeList" />
</constraints>
</property>
  </properties>
<mandatory-aspects>
<aspect>cm:generalclassifiable</aspect>
</mandatory-aspects>
</type>

bisana
Champ on-the-rise
Champ on-the-rise
Thanks for the tip
I will check it
Getting started

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.