Showing posts with label SDK. Show all posts
Showing posts with label SDK. Show all posts

Thursday, May 7, 2020

Alfresco - new project

Alfresco - new project

Objectives

Alfresco is ECM (Enterprise Content Management) - the system to store, manage and care about documents in their full live cycle. I've prepared high level conceptual diagram but the I won't describe the details because there are exists a lot of pages like i.e. https://docs.alfresco.com/6.1/concepts/welcome.html or Jeff Potts blog https://ecmarchitect.com/

     


The main goal is to create new project - add data model with fields, new forms to visualize new attributes and new search form


Lets start

I based on Jeff's tutorial and I prepared my own functionality. I added below prepared screens:

  • Search Form:
  


  • Edit form:




  • Attributes panel:



Preparation of the functionality

At the beginning you have to use Alfresco SDK and create new project from archtype:
https://docs.alfresco.com/5.1/tasks/alfresco-sdk-tutorials-all-in-one-archetype.html


I added my own model like below (content-model.xml):

















If you create new model you have to register it in bootstrap-context.xml:














It is necessary to register new forms and fields in share-config-custom.xml:






















Last element is very important. It is necessary to cast object to previously created model and create new rule.












That's all! :)