create and query document in custom model error

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Active Member II

create and query document in custom model error

Jump to solution

Dear everyone,

Now I miss error as below, 

- the first step I create new data model with name  "Document"

- in "Document" I create custom type: with name "mc:whilePaper" and aspect

-in the first time I query document, the result  return error

- I try query document again the result is ok 

- When I try to create new document as below

Session cmisSession = getCmisSession();

String fileName = file.getName();

// create a map of properties if one wasn't passed in
if (props == null) {
props = new HashMap<String, Object>();
}
if (props.get("cmis:baseTypeId") == null) {
props.put("cmis:baseTypeId", "cmis:document");
}

// Add the object type ID if it wasn't already
if (props.get("cmisSmiley SurprisedbjectTypeId") == null) {
props.put("cmisSmiley SurprisedbjectTypeId", "D:mc:whilePaper");
}


ContentStream contentStream = cmisSession.getObjectFactory().
createContentStream(
fileName,
file.length(),
fileType,
new FileInputStream(file)
);

Document document = null;
try {
document = parentFolder.createDocument(props, contentStream, null);
System.out.println("Created new document: " + document.getId());
} catch (CmisContentAlreadyExistsException ccaee) {
document = (Document) cmisSession.getObjectByPath(parentFolder.getPath() + "/" + fileName);
System.out.println("Document already exists: " + fileName);
}

- In run code above, the result return: un know type D:mc:whilePaper

So I don't know what wrong? Anyone can help me?

1 Solution

Accepted Solutions
Highlighted
Professional

Re: create and query document in custom model error

Jump to solution

How are you creating your type? Are you defining it in XML and then restarting Alfresco? Or are you using the model manager in the Share UI?

Have you tried restarting CMIS Workbench after creating the type? Maybe the type list is getting cached.

View solution in original post

7 Replies
Highlighted
Established Member II

Re: create and query document in custom model error

Jump to solution

Did you follow Jeff Potts‌ tutorial: Working With Custom Content Types in Alfresco | ECMArchitect | Alfresco Developer Tutorials 

can you share your content model? are you using cmis 1.0? what version of alfresco are you running? it helps to post the full stack trace of your error.

Highlighted
Professional

Re: create and query document in custom model error

Jump to solution

How are you creating your type? Are you defining it in XML and then restarting Alfresco? Or are you using the model manager in the Share UI?

Have you tried restarting CMIS Workbench after creating the type? Maybe the type list is getting cached.

View solution in original post

Highlighted
Active Member II

Re: create and query document in custom model error

Jump to solution

Dear Jeff Potts, thanks for reply,

I created custom type on model mangager (based on link Alfresco 5.0 - Creating Models - YouTube ). Do you mean that I must restart Alfresco everytime I update model?

Highlighted
Active Member II

Re: create and query document in custom model error

Jump to solution

Dear Markus Joos,

Thanks for your help,

I've already read Jeff Potts, but i'm very new alfresco member.  I create model the same this link Alfresco 5.0 - Creating Models - YouTube , I'm using cmis 1.1 and alfresco 5.0

My model as

<?xml version='1.0' encoding='UTF-8'?>
<cmis:type xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908/" xsi:type="cmis:cmisTypeDocumentDefinitionType">
<cmis:id>D:mc:whilePaper</cmis:id>
<cmis:localName>whilePaper</cmis:localName>
<cmis:localNamespace>http//www.mcredit.com.vn/model/document/1.0</cmis:localNamespace>
<cmis:displayName>while Paper</cmis:displayName>
<cmis:queryName>mc:whilePaper</cmis:queryName>
<cmis:description>D:mc:whilePaper</cmis:description>
<cmis:baseId>cmis:document</cmis:baseId>
<cmisSmiley TonguearentId>cmis:document</cmisSmiley TonguearentId>
<cmis:creatable>true</cmis:creatable>
<cmis:fileable>true</cmis:fileable>
<cmis:queryable>true</cmis:queryable>
<cmis:fulltextIndexed>true</cmis:fulltextIndexed>
<cmis:includedInSupertypeQuery>true</cmis:includedInSupertypeQuery>
<cmis:controllablePolicy>false</cmis:controllablePolicy>
<cmis:controllableACL>true</cmis:controllableACL>
<cmisSmiley TongueropertyStringDefinition>
<cmis:id>mc:writer</cmis:id>
<cmis:localName>writer</cmis:localName>
<cmis:localNamespace>http//www.mcredit.com.vn/model/document/1.0</cmis:localNamespace>
<cmis:displayName>writer</cmis:displayName>
<cmis:queryName>mc:writer</cmis:queryName>
<cmis:description>writer</cmis:description>
<cmisSmiley TongueropertyType>string</cmisSmiley TongueropertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readwrite</cmis:updatability>
<cmis:inherited>false</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmisSmiley Surprisedrderable>false</cmisSmiley Surprisedrderable>
<cmis:defaultValue />
</cmisSmiley TongueropertyStringDefinition>
<cmisSmiley TongueropertyIdDefinition>
<cmis:id>alfcmis:nodeRef</cmis:id>
<cmis:localName>nodeRef</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/alfcmis</cmis:localNamespace>
<cmis:displayName>Alfresco Node Ref</cmis:displayName>
<cmis:queryName>alfcmis:nodeRef</cmis:queryName>
<cmis:description>Alfresco Node Ref</cmis:description>
<cmisSmiley TongueropertyType>id</cmisSmiley TongueropertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>false</cmis:queryable>
<cmisSmiley Surprisedrderable>false</cmisSmiley Surprisedrderable>
<cmis:defaultValue />
</cmisSmiley TongueropertyIdDefinition>
<cmisSmiley TongueropertyBooleanDefinition>
<cmis:id>cmis:isImmutable</cmis:id>
<cmis:localName>isImmutable</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Is Immutable</cmis:displayName>
<cmis:queryName>cmis:isImmutable</cmis:queryName>
<cmis:description>Is the document immutable?</cmis:description>
<cmisSmiley TongueropertyType>boolean</cmisSmiley TongueropertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>false</cmis:queryable>
<cmisSmiley Surprisedrderable>false</cmisSmiley Surprisedrderable>
<cmis:defaultValue />
</cmisSmiley TongueropertyBooleanDefinition>
<cmisSmiley TongueropertyStringDefinition>
<cmis:id>cmis:versionLabel</cmis:id>
<cmis:localName>versionLabel</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Version Label</cmis:displayName>
<cmis:queryName>cmis:versionLabel</cmis:queryName>
<cmis:description>The version label</cmis:description>
<cmisSmiley TongueropertyType>string</cmisSmiley TongueropertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>false</cmis:queryable>
<cmisSmiley Surprisedrderable>false</cmisSmiley Surprisedrderable>
<cmis:defaultValue />
</cmisSmiley TongueropertyStringDefinition>
<cmisSmiley TongueropertyIdDefinition>
<cmis:id>cmisSmiley SurprisedbjectTypeId</cmis:id>
<cmis:localName>objectTypeId</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Object Type Id</cmis:displayName>
<cmis:queryName>cmisSmiley SurprisedbjectTypeId</cmis:queryName>
<cmis:description>Id of the object’s type</cmis:description>
<cmisSmiley TongueropertyType>id</cmisSmiley TongueropertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>oncreate</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>true</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmisSmiley Surprisedrderable>true</cmisSmiley Surprisedrderable>
<cmis:defaultValue />
</cmisSmiley TongueropertyIdDefinition>
<cmisSmiley TongueropertyStringDefinition>
<cmis:id>cmis:description</cmis:id>
<cmis:localName>description</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Description</cmis:displayName>
<cmis:queryName>cmis:description</cmis:queryName>
<cmis:description>Description</cmis:description>
<cmisSmiley TongueropertyType>string</cmisSmiley TongueropertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readwrite</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmisSmiley Surprisedrderable>false</cmisSmiley Surprisedrderable>
<cmis:defaultValue />
</cmisSmiley TongueropertyStringDefinition>
<cmisSmiley TongueropertyStringDefinition>
<cmis:id>cmis:createdBy</cmis:id>
<cmis:localName>createdBy</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Created by</cmis:displayName>
<cmis:queryName>cmis:createdBy</cmis:queryName>
<cmis:description>The authority who created this object</cmis:description>
<cmisSmiley TongueropertyType>string</cmisSmiley TongueropertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmisSmiley Surprisedrderable>true</cmisSmiley Surprisedrderable>
<cmis:defaultValue />
</cmisSmiley TongueropertyStringDefinition>
<cmisSmiley TongueropertyStringDefinition>
<cmis:id>cmis:checkinComment</cmis:id>
<cmis:localName>checkinComment</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Checkin Comment</cmis:displayName>
<cmis:queryName>cmis:checkinComment</cmis:queryName>
<cmis:description>The checkin comment</cmis:description>
<cmisSmiley TongueropertyType>string</cmisSmiley TongueropertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>false</cmis:queryable>
<cmisSmiley Surprisedrderable>false</cmisSmiley Surprisedrderable>
<cmis:defaultValue />
</cmisSmiley TongueropertyStringDefinition>
<cmisSmiley TongueropertyDateTimeDefinition>
<cmis:id>cmis:creationDate</cmis:id>
<cmis:localName>creationDate</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Creation Date</cmis:displayName>
<cmis:queryName>cmis:creationDate</cmis:queryName>
<cmis:description>The object creation date</cmis:description>
<cmisSmiley TongueropertyType>datetime</cmisSmiley TongueropertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmisSmiley Surprisedrderable>true</cmisSmiley Surprisedrderable>
<cmis:defaultValue />
</cmisSmiley TongueropertyDateTimeDefinition>
<cmisSmiley TongueropertyBooleanDefinition>
<cmis:id>cmis:isMajorVersion</cmis:id>
<cmis:localName>isMajorVersion</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Is Major Version</cmis:displayName>
<cmis:queryName>cmis:isMajorVersion</cmis:queryName>
<cmis:description>Is this a major version of the document?</cmis:description>
<cmisSmiley TongueropertyType>boolean</cmisSmiley TongueropertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>false</cmis:queryable>
<cmisSmiley Surprisedrderable>false</cmisSmiley Surprisedrderable>
<cmis:defaultValue />
</cmisSmiley TongueropertyBooleanDefinition>
<cmisSmiley TongueropertyStringDefinition>
<cmis:id>cmis:contentStreamFileName</cmis:id>
<cmis:localName>contentStreamFileName</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Content Stream Filename</cmis:displayName>
<cmis:queryName>cmis:contentStreamFileName</cmis:queryName>
<cmis:description>The content stream filename</cmis:description>
<cmisSmiley TongueropertyType>string</cmisSmiley TongueropertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmisSmiley Surprisedrderable>false</cmisSmiley Surprisedrderable>
<cmis:defaultValue />
</cmisSmiley TongueropertyStringDefinition>
<cmisSmiley TongueropertyStringDefinition>
<cmis:id>cmis:name</cmis:id>
<cmis:localName>name</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Name</cmis:displayName>
<cmis:queryName>cmis:name</cmis:queryName>
<cmis:description>Name</cmis:description>
<cmisSmiley TongueropertyType>string</cmisSmiley TongueropertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readwrite</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>true</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmisSmiley Surprisedrderable>true</cmisSmiley Surprisedrderable>
<cmis:defaultValue />
</cmisSmiley TongueropertyStringDefinition>
<cmisSmiley TongueropertyBooleanDefinition>
<cmis:id>cmis:isLatestVersion</cmis:id>
<cmis:localName>isLatestVersion</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Is Latest Version</cmis:displayName>
<cmis:queryName>cmis:isLatestVersion</cmis:queryName>
<cmis:description>Is this the latest version of the document?</cmis:description>
<cmisSmiley TongueropertyType>boolean</cmisSmiley TongueropertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>false</cmis:queryable>
<cmisSmiley Surprisedrderable>false</cmisSmiley Surprisedrderable>
<cmis:defaultValue />
</cmisSmiley TongueropertyBooleanDefinition>
<cmisSmiley TongueropertyDateTimeDefinition>
<cmis:id>cmis:lastModificationDate</cmis:id>
<cmis:localName>lastModificationDate</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Last Modified Date</cmis:displayName>
<cmis:queryName>cmis:lastModificationDate</cmis:queryName>
<cmis:description>The date this object was last modified</cmis:description>
<cmisSmiley TongueropertyType>datetime</cmisSmiley TongueropertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmisSmiley Surprisedrderable>true</cmisSmiley Surprisedrderable>
<cmis:defaultValue />
</cmisSmiley TongueropertyDateTimeDefinition>
<cmisSmiley TongueropertyIntegerDefinition>
<cmis:id>cmis:contentStreamLength</cmis:id>
<cmis:localName>contentStreamLength</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Content Stream Length</cmis:displayName>
<cmis:queryName>cmis:contentStreamLength</cmis:queryName>
<cmis:description>The length of the content stream</cmis:description>
<cmisSmiley TongueropertyType>integer</cmisSmiley TongueropertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmisSmiley Surprisedrderable>true</cmisSmiley Surprisedrderable>
<cmis:defaultValue />
<cmis:maxValue>9223372036854775807</cmis:maxValue>
<cmis:minValue>-9223372036854775808</cmis:minValue>
</cmisSmiley TongueropertyIntegerDefinition>
<cmisSmiley TongueropertyIdDefinition>
<cmis:id>cmisSmiley SurprisedbjectId</cmis:id>
<cmis:localName>objectId</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Object Id</cmis:displayName>
<cmis:queryName>cmisSmiley SurprisedbjectId</cmis:queryName>
<cmis:description>The unique object id (a node ref)</cmis:description>
<cmisSmiley TongueropertyType>id</cmisSmiley TongueropertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmisSmiley Surprisedrderable>true</cmisSmiley Surprisedrderable>
<cmis:defaultValue />
</cmisSmiley TongueropertyIdDefinition>
<cmisSmiley TongueropertyStringDefinition>
<cmis:id>cmis:lastModifiedBy</cmis:id>
<cmis:localName>lastModifiedBy</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Last Modified By</cmis:displayName>
<cmis:queryName>cmis:lastModifiedBy</cmis:queryName>
<cmis:description>The authority who last modified this object</cmis:description>
<cmisSmiley TongueropertyType>string</cmisSmiley TongueropertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmisSmiley Surprisedrderable>true</cmisSmiley Surprisedrderable>
<cmis:defaultValue />
</cmisSmiley TongueropertyStringDefinition>
<cmisSmiley TongueropertyIdDefinition>
<cmis:id>cmis:secondaryObjectTypeIds</cmis:id>
<cmis:localName>secondaryObjectTypeIds</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Secondary Object Type Ids</cmis:displayName>
<cmis:queryName>cmis:secondaryObjectTypeIds</cmis:queryName>
<cmis:description>Ids of the secondary object types for the object</cmis:description>
<cmisSmiley TongueropertyType>id</cmisSmiley TongueropertyType>
<cmis:cardinality>multi</cmis:cardinality>
<cmis:updatability>readwrite</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmisSmiley Surprisedrderable>false</cmisSmiley Surprisedrderable>
<cmis:defaultValue />
</cmisSmiley TongueropertyIdDefinition>
<cmisSmiley TongueropertyIdDefinition>
<cmis:id>cmis:contentStreamId</cmis:id>
<cmis:localName>contentStreamId</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Content Stream Id</cmis:displayName>
<cmis:queryName>cmis:contentStreamId</cmis:queryName>
<cmis:description>Id of the stream</cmis:description>
<cmisSmiley TongueropertyType>id</cmisSmiley TongueropertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>false</cmis:queryable>
<cmisSmiley Surprisedrderable>false</cmisSmiley Surprisedrderable>
<cmis:defaultValue />
</cmisSmiley TongueropertyIdDefinition>
<cmisSmiley TongueropertyStringDefinition>
<cmis:id>cmis:contentStreamMimeType</cmis:id>
<cmis:localName>contentStreamMimeType</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Content Stream MIME Type</cmis:displayName>
<cmis:queryName>cmis:contentStreamMimeType</cmis:queryName>
<cmis:description>The content stream MIME type</cmis:description>
<cmisSmiley TongueropertyType>string</cmisSmiley TongueropertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmisSmiley Surprisedrderable>true</cmisSmiley Surprisedrderable>
<cmis:defaultValue />
</cmisSmiley TongueropertyStringDefinition>
<cmisSmiley TongueropertyIdDefinition>
<cmis:id>cmis:baseTypeId</cmis:id>
<cmis:localName>baseTypeId</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Base Type Id</cmis:displayName>
<cmis:queryName>cmis:baseTypeId</cmis:queryName>
<cmis:description>Id of the base object type for the object</cmis:description>
<cmisSmiley TongueropertyType>id</cmisSmiley TongueropertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmisSmiley Surprisedrderable>false</cmisSmiley Surprisedrderable>
<cmis:defaultValue />
</cmisSmiley TongueropertyIdDefinition>
<cmisSmiley TongueropertyStringDefinition>
<cmis:id>cmis:changeToken</cmis:id>
<cmis:localName>changeToken</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Change token</cmis:displayName>
<cmis:queryName>cmis:changeToken</cmis:queryName>
<cmis:description>Change Token</cmis:description>
<cmisSmiley TongueropertyType>string</cmisSmiley TongueropertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>false</cmis:queryable>
<cmisSmiley Surprisedrderable>false</cmisSmiley Surprisedrderable>
<cmis:defaultValue />
</cmisSmiley TongueropertyStringDefinition>
<cmisSmiley TongueropertyBooleanDefinition>
<cmis:id>cmis:isPrivateWorkingCopy</cmis:id>
<cmis:localName>isPrivateWorkingCopy</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Is private working copy</cmis:displayName>
<cmis:queryName>cmis:isPrivateWorkingCopy</cmis:queryName>
<cmis:description>Indicates if this instance is a private working copy</cmis:description>
<cmisSmiley TongueropertyType>boolean</cmisSmiley TongueropertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>false</cmis:queryable>
<cmisSmiley Surprisedrderable>false</cmisSmiley Surprisedrderable>
<cmis:defaultValue />
</cmisSmiley TongueropertyBooleanDefinition>
<cmisSmiley TongueropertyStringDefinition>
<cmis:id>cmis:versionSeriesCheckedOutBy</cmis:id>
<cmis:localName>versionSeriesCheckedOutBy</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Version Series Checked Out By</cmis:displayName>
<cmis:queryName>cmis:versionSeriesCheckedOutBy</cmis:queryName>
<cmis:description>The authority who checked out this document version
series</cmis:description>
<cmisSmiley TongueropertyType>string</cmisSmiley TongueropertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>false</cmis:queryable>
<cmisSmiley Surprisedrderable>false</cmisSmiley Surprisedrderable>
<cmis:defaultValue />
</cmisSmiley TongueropertyStringDefinition>
<cmisSmiley TongueropertyBooleanDefinition>
<cmis:id>cmis:isVersionSeriesCheckedOut</cmis:id>
<cmis:localName>isVersionSeriesCheckedOut</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Is Version Series Checked Out</cmis:displayName>
<cmis:queryName>cmis:isVersionSeriesCheckedOut</cmis:queryName>
<cmis:description>Is the version series checked out?</cmis:description>
<cmisSmiley TongueropertyType>boolean</cmisSmiley TongueropertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>false</cmis:queryable>
<cmisSmiley Surprisedrderable>false</cmisSmiley Surprisedrderable>
<cmis:defaultValue />
</cmisSmiley TongueropertyBooleanDefinition>
<cmisSmiley TongueropertyIdDefinition>
<cmis:id>cmis:versionSeriesId</cmis:id>
<cmis:localName>versionSeriesId</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Version series id</cmis:displayName>
<cmis:queryName>cmis:versionSeriesId</cmis:queryName>
<cmis:description>The version series id</cmis:description>
<cmisSmiley TongueropertyType>id</cmisSmiley TongueropertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>false</cmis:queryable>
<cmisSmiley Surprisedrderable>false</cmisSmiley Surprisedrderable>
<cmis:defaultValue />
</cmisSmiley TongueropertyIdDefinition>
<cmisSmiley TongueropertyBooleanDefinition>
<cmis:id>cmis:isLatestMajorVersion</cmis:id>
<cmis:localName>isLatestMajorVersion</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Is Latest Major Version</cmis:displayName>
<cmis:queryName>cmis:isLatestMajorVersion</cmis:queryName>
<cmis:description>Is this the latest major version of the document?</cmis:description>
<cmisSmiley TongueropertyType>boolean</cmisSmiley TongueropertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>false</cmis:queryable>
<cmisSmiley Surprisedrderable>false</cmisSmiley Surprisedrderable>
<cmis:defaultValue />
</cmisSmiley TongueropertyBooleanDefinition>
<cmisSmiley TongueropertyIdDefinition>
<cmis:id>cmis:versionSeriesCheckedOutId</cmis:id>
<cmis:localName>versionSeriesCheckedOutId</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Version Series Checked Out Id</cmis:displayName>
<cmis:queryName>cmis:versionSeriesCheckedOutId</cmis:queryName>
<cmis:description>The checked out version series id</cmis:description>
<cmisSmiley TongueropertyType>id</cmisSmiley TongueropertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>false</cmis:queryable>
<cmisSmiley Surprisedrderable>false</cmisSmiley Surprisedrderable>
<cmis:defaultValue />
</cmisSmiley TongueropertyIdDefinition>
<cmis:versionable>true</cmis:versionable>
<cmis:contentStreamAllowed>allowed</cmis:contentStreamAllowed>
<e1:mandatoryAspects xmlns:e1="http://www.alfresco.org">
<e1:mandatoryAspect>P:sys:localized</e1:mandatoryAspect>
</e1:mandatoryAspects>
</cmis:type>

Highlighted
Active Member II

Re: create and query document in custom model error

Jump to solution

anyone can help?

Highlighted
Active Member II

Re: create and query document in custom model error

Jump to solution

Dear all member,

when I restart Alfresco, all Issue is fix.

So many thanks your help!

Highlighted
Established Member II

Re: create and query document in custom model error

Jump to solution

great - please select Jeffs answer as correct then! Smiley Happy