cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Types - Malformed type id

bedhead
Champ in-the-making
Champ in-the-making
I would like to use a custom cmis type, but i have a little problem.

I'm developing a solutions which uses the CMIS Web Service API and i'm using Alfresco Community Edition 3.2r.
The predefined types works very well, but now i would like to define my own custom types with their own custom properties.

I have found the 'cmisTextModel.xml' file where such custom types are defined and can be defined. I would like to use a custom folder like it is defined in the following xml example.

 <type name="cmiscustom:folder">
         <title>Custom Folder</title>
         <parent>cm:folder</parent>
         <properties>
            <property name="cmiscustom:folderprop_string">
                <title>Custom Folder Property (string)</title>
                <type>d:text</type>
            </property>
         </properties>
      </type>


Via the repositoryservice i tryied to get information about my custom type.


 cmisTypeDefinitionType typeDef = repServ.getTypeDefinition(this.RepositoryID, "cmiscustom:folder", null); 
When i try to get information via a web service about this type i get the following exception:

Exception
org.alfresco.error.AlfrescoRuntimeException: 00260076 Malformed type id 'cmiscustom:folder'

I am wondering about it, because with the predefined types this method works very well.

Has anybody expierience with custom types and cmis??

Best regards

bedhead
2 REPLIES 2

kbryd
Champ in-the-making
Champ in-the-making
Add F: prefix like this "F:cmiscustom:folder". If you're dealing with documents add 😧

Good luck 🙂

bedhead
Champ in-the-making
Champ in-the-making
Thanks! This works great!  Smiley Very Happy  Smiley Very Happy