AnsweredAssumed Answered

What is best practice to implement documents model ?

Question asked by ribz33 on Apr 5, 2007
Latest reply on May 14, 2007 by rdanner
Hi,

im wondering about what is best way to implement documents model in Alfresco.

Is it better to create one type per document or make generic document type and use aspects ?

I will try to give a simple example:
We can imagine 2 documents types :
:arrow:  "report" with for instance this custom properties :
    - domain
    - origin

:arrow:  "letter" :
    - receiver society
    - receiver person

To implement this model what is best practice ? make 2 different types or 2 aspects ?

Strenght for types are :
    - its better in interface, user choose type, and see dedicated properties
    - its available from all spaces
    - (and i think its more logical)

Weakness for types are :
    - I cant change type in interface if i did mistake, i need to delete and recreate document.
    - I cant choose appropriate type with FTP, CIFS, Webdav and dont change it later!
    - if i create new type in model i cant delete it after, because i will have integrity errors on repository.


Strenght for aspects are :
    - user can change aspect
    - with rules it can be automatised on some space
    - we can use CIFS, etc.

Weakness for aspects are :
    - need a voluntary action of user to specify generic document in interface and its difficult to make it automatic most of time

There is probably more things to tell about this… (discussion is open)

I dont find all satisfaction in two approach…

I want to find best practice to implement model on Alfresco, and make implementation as clever as possible.

You are all free to give your opinion and your experience about it…

Outcomes