AnsweredAssumed Answered

What is the role tag for in customModel.xml

Question asked by stevewickii on Sep 18, 2008
Latest reply on Mar 6, 2009 by moschops
Can anyone tell me how alfresco uses the <role> tag in the customModel.xml file?

Exerpt from contentModel.xml
      <aspect name="cm:referencing">
         <title>Referencing</title>
         <associations>
            <association name="cm:references">
               <source>
                  <role>cm:referencedBy</role>
                  <mandatory>false</mandatory>
                  <many>true</many>
               </source>
               <target>
                  <class>cm:content</class>
                  <role>cm:references</role>
                  <mandatory>false</mandatory>
                  <many>true</many>
               </target>
            </association>
         </associations>
      </aspect>

In this example cm:referencedBy and cm:references are two roles, but I don't understand what they are used for.

The role tag is not documented in the Data Dictionary Guide http://wiki.alfresco.com/wiki/Data_Dictionary_Guide#Child_Associations.

Outcomes