AnsweredAssumed Answered

Defining versioned and unversioned Document types

Question asked by spano on Oct 17, 2013
Latest reply on Oct 17, 2013 by spano
Hello,

I am trying to create two types of Documents in Alfresco, one that supports versions of a Document to be created while the other does not support versions. I have defined the following two document types in cmisTestModel.xml which are shown below.

1. BPMDocument (supports creation of versions)
2. BPMDocumentUnversioned (does not support versions)

The difference between the two are that BPMDocument contains the cm:versionable aspect whereas BPMDocumentUnversioned does not. Unfortunately BPMDocumentUnversioned still allows me to create different versions of the document using the CMIS spec (checkin and checkout). Is there something wrong with my definitions provided below?


<type name="cmiscustom:BPMDocument">
    <title>BPM Document</title>
    <parent>cm:content</parent>
    <properties>
        <property name="cmiscustom:BPMBoolean">
            <title>BPMBoolean</title>
            <type>d:boolean</type>
            <multiple>true</multiple>
        </property>
        <property name="cmiscustom:BPMInteger">
            <title>BPMInteger</title>
            <type>d:int</type>
        </property>
        <property name="cmiscustom:BPMFloat">
            <title>BPMFloat</title>
            <type>d:float</type>
        </property>
        <property name="cmiscustom:BPMDateTime">
            <title>BPMDateTime</title>
            <type>d:datetime</type>
        </property>
    </properties>
    <mandatory-aspects>
        <aspect>cm:versionable</aspect>
    </mandatory-aspects>
</type>
    



<type name="cmiscustom:BPMDocumentUnversioned">
    <title>BPM Document Unversioned</title>
    <parent>cm:content</parent>
    <properties>
        <property name="cmiscustom:BPMUnversionedBoolean">
            <title>BPMUnversionedBoolean</title>
            <type>d:boolean</type>
            <multiple>true</multiple>
        </property>
        <property name="cmiscustom:BPMUnversionedInteger">
            <title>BPMUnversionedInteger</title>
            <type>d:int</type>
        </property>
        <property name="cmiscustom:BPMUnversionedFloat">
            <title>BPMUnversionedFloat</title>
            <type>d:float</type>
        </property>
        <property name="cmiscustom:BPMUnversionedDateTime">
            <title>BPMUnversionedDateTime</title>
            <type>d:datetime</type>
        </property>
    </properties>
</type>

Outcomes