Hi,
My requirement is to create a Business Object Type structure with attachments in Alfresco.
For example, this kind of structure:
Invoice 1000:
— Attachment 1
— Attachment 2
— Attachment 3
Invoice 1002:
— Attachment 4
Invoice 1003:
— Attachment 5
— Attachment 6
.. and so on..
In order to map this scenario in Alfresco I created a Custom Model and defined an invoice Type with a <parent>cm:folder</parent> and added the properties of the object type. Using this logic each invoice is created as a "Folder with Properties" in Alfresco and then the attachments for each of the invoices are uploaded into the corresponding folder. I also added an aspect to store some metadata fields for the documents.
This is working well so far (I am prototyping just for educational purposes)
I am new to Alfresco so I would like to know if this is the right way to map the scenario into Alfresco´s logic.
Is there another/better way to map the business object and the attachments?
Any comments and suggestions are welcome.
Thanks!