AnsweredAssumed Answered

créer un document avec une association obligatoire

Question asked by dsimonpat on Jan 13, 2018
Latest reply on Jan 15, 2018 by cristinamr

voici un extrait de mon xml.

<type name="dsp:Personne">
            <parent>cm:content</parent>
            <properties>
                <property name="dsp:matricule">
                    <type>d:text</type>
                    <mandatory>true</mandatory>
                    <index enabled="true">
                        <tokenised>TRUE</tokenised>
                        <facetable>false</facetable>
                    </index>
                </property>               
            </properties>
             <associations>
                <association name="dsp:Departement">
                    <title>Departement</title>
                    <source>
                        <mandatory>false</mandatory>
                        <many>true</many>
                    </source>
                    <target>
                        <class>dsp:Departement</class>
                        <mandatory>true</mandatory>
                        <many>true</many>
                    </target>
                </association>
            </associations>
            <overrides/>
            <mandatory-aspects/>
        </type>

 

Lorsque je créait le document Personne j,'ai cette erreur :

org.apache.chemistry.opencmis.commons.exceptions.CmisConstraintException: Constraint violation: 00130350 Found 1 integrity violations:
The association target multiplicity has been violated:
   Source Node: workspace://SpacesStore/bdcbfd6b-7ac6-4e44-96ff-870c42ae98d5
   Association: Association[ class=ClassDef[name={...........

 

Comment créer le document personne en précisant l'association entre lui et un document Département?

Outcomes