Expand my Community achievements bar.

SOLVED

Roll Out Page Email notification | AEM6.0

Avatar

Level 2

Hi,

I needed to trigger an email to a group of users whenever a page is rolled out.Could any one help me out on how to achieve this on page roll out action(Page -> Rollout Page)? Is there any default event handler for roll out ? If any, i can then trigger email task from that.

Any suggestions would be appreciated.

Thanks,

Channaveer

1 Accepted Solution

Avatar

Correct answer by
Level 10

From the docs:

CREATING A ROLLOUT CONFIGURATION

Create a rollout configuration when the installed rollout configurations do not meet your application requirements. Create the rollout configuration, then add the trigger and synchronazion actions. The new rollout configuration is available when setting rollout configurations on a blueprint or on a Live Copy page.

The following events are available to use as synchronization triggers:

  • On Rollout: The blueprint page is rolled out.
  • On Modification: The source page is modified. Be careful when choosing this option as it might cause a lot of network traffic.
  • On Activation: The source page is activated.
  • On Deactivation: The source page is deactivated.

See: http://dev.day.com/docs/en/cq/current/administering/multi_site_manager.html

You can write an event handler that is fired when one of these events occur. You can easily write a custom email service for CQ that is invoked from the event handler:

See this for creating a custom CQ email service:

http://helpx.adobe.com/experience-manager/using/creating-custom-cq-email-services.html

See this community article on how to write an general event handler:

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

From you event handler - code it so it calls the email service and sends email to whom you want. 

View solution in original post

4 Replies

Avatar

Level 9

In order to be notified, you first need to subscribe to rollout

http://docs.adobe.com/docs/en/aem/6-0/administer/operations/notification.html

Also look at Synchronisation Actions in  http://docs.adobe.com/docs/en/aem/6-0/administer/sites/multi-site-manager/msm-sync.html

        
Send a notificationSends a page event that the page has been rolled out. In order to be notified, one needs to first subscribe to rollout events.notifyenabledtrue

Avatar

Correct answer by
Level 10

From the docs:

CREATING A ROLLOUT CONFIGURATION

Create a rollout configuration when the installed rollout configurations do not meet your application requirements. Create the rollout configuration, then add the trigger and synchronazion actions. The new rollout configuration is available when setting rollout configurations on a blueprint or on a Live Copy page.

The following events are available to use as synchronization triggers:

  • On Rollout: The blueprint page is rolled out.
  • On Modification: The source page is modified. Be careful when choosing this option as it might cause a lot of network traffic.
  • On Activation: The source page is activated.
  • On Deactivation: The source page is deactivated.

See: http://dev.day.com/docs/en/cq/current/administering/multi_site_manager.html

You can write an event handler that is fired when one of these events occur. You can easily write a custom email service for CQ that is invoked from the event handler:

See this for creating a custom CQ email service:

http://helpx.adobe.com/experience-manager/using/creating-custom-cq-email-services.html

See this community article on how to write an general event handler:

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

From you event handler - code it so it calls the email service and sends email to whom you want. 

Avatar

Level 2

Hi,

Thanks for the response.

The first link is for setting up mail service in the server which I have already done. 

Is there a custom way for sending an email when page is rolled out?

 

-Channaveer

Avatar

Level 9

Have u looked the section with title EMAIL TEMPLATES FOR PAGE NOTIFICATION

Below setting email service in first link

it has all details u need