Catching AEM Content installation event | Community
Skip to main content
Level 2
April 4, 2018

Catching AEM Content installation event

  • April 4, 2018
  • 3 replies
  • 3544 views

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.

Thanks!!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

smacdonald2008
Level 10
April 4, 2018

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...

Rima_Mittal
Level 4
April 4, 2018

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
April 4, 2018

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.