Salve a tutto il forum,
avrei bisogno di schiarirmi bene le idee su "cos'è un associations" e a " cosa serve". Ho letto già dalla guida ufficiale Associations | Alfresco Documentation ma non ben compreso l'utilizzo. Ok...Un'associazione in sintesi sarebbe una relazione tra tipi. Andando piu a fondo :
<type name="sc:doc">
<title>Someco Document</title>
<parent>cm:content</parent>
<associations>
<association name="sc:relatedDocuments">
<title>Related Documents</title>
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>sc:doc</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
</associations>
</type>
Non è bene chiaro il legame che c'è tra source e target. Mandatory e many definiscono il tipo di relazione ad esempio 1 a molti, 0...1, 1..1
Qualcuno potrebbe cortesemente fornire delle delucidazioni a tal riguardo?
Grazie in anticipo per ogni vostra risposta
Given the model you have provided, think of it this way:
document1.txt can have many related documents (target, many = true) but it might not have any (target, mandatory = false).
Example:
Also, a given related document could be associated to more than one document (source, many = true):
Example:
Hope that clears it up.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.