Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Catching AEM Content installation event

Level 2
Level 2

The use case here is to get the information of content with type cq:Page and dam:Asset that is being installed/updated in the JCR using package manager in AEM.

I would like to know if there are any event listener or API's that can be used for this purpose.

AEM 6.2 is being used here.


0 Replies
Level 10
Level 10

Pages are just nodes. You can write an event handler that uses the javax.jcr.observation.EventListener.

See: Scott's Digital Community: Creating an AEM JCR Event Listener using a Maven Archetype 12 Project

Hope this helps...

Level 4
Level 4

The same can be done using workflow launchers as well which would trigger on creation/modification of node types 'cq:Page' and 'dam:Asset'.

Have a custom process step that generates a report consolidating the information about the workflow payloads in action.

Level 2
Level 2

It seems I missed a point in my questions, is there a way to know if the content was installed/updated using the package manager.

Rima Mittal smacdonald2008 - Both the solution can be used.