cancel
Showing results for 
Search instead for 
Did you mean: 

createDocument() new Model at CMIS

josesemt
Champ in-the-making
Champ in-the-making
Hi, i am trying to create a new type Document with CMIS.

If i do this, it works:
createDocument(repositoryId, "document", properties, parentFolderId, cmisStream, EnumVersioningState.MAJOR);

But if i do this, it doesn`t work

createDocument(repositoryId, "D/jma_documentoPru", properties, parentFolderId, cmisStream, EnumVersioningState.MAJOR);

It returns an invalid type Document…

I`ve configured a new model "jma:documentPru" and i can create documents of this model at alfreco console.
I`ve also configured a new folder "jma:folderPru" and it works very well.
The problem is with the new type whose parent is "content".

Can anyone help me??

Thank you..
1 REPLY 1

josekdiz
Champ in-the-making
Champ in-the-making
Hi,

I think Alfresco CMIS can't work with sub-types document yet. In the children.post.atom.js file, you can see:

// TODO: creation of file/folder sub-types

We must to wait, I think so.