Error throwing when I add mandatory aspect in type definitio

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2012 01:52 AM
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
I want to add the mandatory aspect in the document type, whatever order I try out I am getting error
Help is appreciated
Thanks
Joseph John
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
Labels:
- Labels:
-
Archive
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2012 06:01 AM
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>

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2012 06:25 AM
Thanks for the tip
I will check it
I will check it
