Using Alfresco Events API with the Java SDK (Out Of Process)

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Alfresco Events API with the Java SDK (Out Of Process)

angelborroy
Alfresco Employee
1 0 1,781

Alfresco publish a number of events under some conditions happening in the repository.

Details on the Events API are provided in Official Alfresco Documentation:

https://docs.alfresco.com/content-services/latest/develop/oop-ext-points/events/

In addition to the existent Alfresco Maven SDK (4.x), oriented to extend the product features by creating AMP or JAR modules, a new Alfresco Java SDK (5,x) has been introduced in Alfresco 7 to provide integrations with the repository Out Of Process. When using this new SDK, both REST API and ActiveMQ sources can be used to adapt the use of the platform to a given use case.

Alfresco Events API can be consumed from many different types of clients (Spring Boot, Spring Integration, Apache Camel...). Alfresco Java SDK provides a reference implementation for a Java native client using a Filter-Handler pattern.

Details on the use of this native client is available in Alfresco Official Documentation:

https://github.com/Alfresco/alfresco-java-sdk/tree/develop/alfresco-java-event-api

Additionally, the project includes the information for the Event Model used to build the events:

https://github.com/Alfresco/alfresco-java-sdk/tree/develop/alfresco-java-event-api/alfresco-java-eve...

Discover how to use this new SDK with the Events API in the following video.

About the Author
Angel Borroy is Hyland Developer Evangelist. Over the last 15 years, he has been working as a software architect on Java, BPM, document management and electronic signatures. He has been working with Alfresco during the last years to customize several implementations in large organizations and to provide add-ons to the Community based on Record Management and Electronic Signature. He writes (sometimes) on his personal blog http://angelborroy.wordpress.com. He is (proud) member of the Order of the Bee.