Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.
SOLVED

how to listen to live copy events?

Avatar

Level 4

HI

Is there a way to listen to live copy events? what topic to subscribe to? Or any other options to hook into live copy lifecycle. Any pointers will be helpful. 

Also, how can be find available/ supported topics? Is it listed anywhere in the instance?

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

There are a number of ways how you might know that a rollout has happened:

  • Wrap the rolllut into a workflow
  • Implement your custom rollout action and configure the rollout to use it. This rollout action can then perform the activity you're interested in.

Jörg

View solution in original post

6 Replies

Avatar

Level 10

There are no specific events related to LiveCopy. Here is the documentation. 

https://docs.adobe.com/docs/en/aem/6-2/administer/sites/msm/msm-livecopy.html

Now you can hook into general JCR events - such as when a node is created. That is, when a new node is created as a result of a LiveCopy operation, you can have a listener perform an action. For information about JCR Events -- see: 

https://helpx.adobe.com/experience-manager/using/events.html

Hope this helps... 

Avatar

Level 10

Hi Mohan,

As Scott mentioned I dont see any specific listerners for live copy events. There are JCR events which you can listen to. Essentially live copy activities will do one of the JCR events.

Are you looking at any specific live copy events ??

Avatar

Level 4

How can we know whether node got created out of live copy operation?

Avatar

Level 10

You can designate a specific location in the JCR where only livecopies are created. When a node is created there - you know its a livecopy. Using JCR events - there is no way to tell that a livecopy operation occurred, 

Avatar

Correct answer by
Employee Advisor

There are a number of ways how you might know that a rollout has happened:

  • Wrap the rolllut into a workflow
  • Implement your custom rollout action and configure the rollout to use it. This rollout action can then perform the activity you're interested in.

Jörg

Avatar

Employee

You may also want to consider looking at the mixin types on the node.

It might help if you explain a little more about your use case and what you want to do when a rollout occurs.