Skip to main content
mohanb
Level 4
Oct 28, 2016 5:44 PM UTC
Solved

how to listen to live copy events?

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
joerghoh
joerghohAccepted solution
Adobe Employee
Oct 29, 2016 7:14 PM UTC

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

6 replies

smacdonald2008
Level 10
Oct 28, 2016 8:22 PM UTC

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

Translate
Lokesh_Shivalingaiah
Level 10
Oct 28, 2016 9:13 PM UTC

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

Translate
mohanb
mohanbAuthor
Level 4
Oct 29, 2016 2:25 AM UTC

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

Translate
smacdonald2008
Level 10
Oct 29, 2016 5:09 PM UTC

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, 

Translate
joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
Oct 29, 2016 7:14 PM UTC

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

Translate
Adobe Employee
Oct 31, 2016 6:23 AM UTC

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.

Translate