Expand my Community achievements bar.

SOLVED

custom rollout and custom liveaction issues

Avatar

Level 4

i am using aem 6.2 and java 8. i created custom rollout and custom live action as per the steps mentioned in the https://docs.adobe.com/docs/en/aem/6-2/develop/extending/msm.html#Add%20Synchronization%20Actions%20... document. custom rollout config is configured for “On Rollout”.

How ever, when i view or edit/save trigger. it doesn’t reflect on the console. It shows as trigger “not defined”. there are couple of things i observed,

 

  1. when live copy is created from source to destination custom action is not getting invoked inspite of adding the custom rollout config before creating livecopy. but when i go to livecopy and click on synchronize button action is getting executed. is this how is it supposed? or is there a way to ensure custom live action gets executed when live copy gets created
  2. custom live action registered under the node doesn’t appear on screen. i’ve seen default and other roll-out configuration which displays all the information when page is viewed. attached is the screenshot. Also, when i edit/save the settings of rollout config, i see below error message in error.log. 

 

31.10.2016 18:24:14.981 *ERROR* [0:0:0:0:0:0:0:1 [1477963454977] GET /etc/msm/rolloutconfigs/titlelocaleliveaction.html HTTP/1.1] com.day.cq.wcm.msm.impl.RolloutConfigManagerFactoryImpl RolloutConfig /etc/msm/rolloutconfigs/titlelocaleliveaction/jcr:content is invalid: Failed to resolve Factory with id titleLocaleAction, maybe Service is uninstalled

1 Accepted Solution

Avatar

Correct answer by
Level 10

We completed this draft of the article - it is invoked when we Activate the page - as an example: 

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

So yes - the rollout page is activated and the custom logic writes info to the log file. The code works as specified in the artilce. 

View solution in original post

12 Replies

Avatar

Level 4

anyone faced this issue before? looking for pointers around this issue.

Avatar

Level 10

I am going through this artilce - i will get this code into a HELPX article and provide you all the steps to get it successfully running. 

Avatar

Level 4

Thanks @smacdonald2008

Issue was with getName() method which returned null in the article code and that's fixed in the github code you've pointed. now #2, error in the log files is not appearning

custom live action registered under the node doesn’t appear on screen. i’ve seen default and other roll-out configuration which displays all the information when page is viewed. attached is the screenshot. Also, when i edit/save the settings of rollout config, i see below error message in error.log. 

 

#1, is not resolved yet. When i initiate a live copy by selecting source, destination and specifying rollout (standard rollout -default, custom rollout - to trigger custom action), custom action is NOT triggered. I have to goto live copy instance and synchronise explicitly, only then changes happen and reflect on screen. Is this how it is supposed to work?

Avatar

Level 10

I am investigating with the code that works  - my objective is to get this all working and into a HELPX article and video:

http://scottsdigitalcommunity.blogspot.ca/2016/11/extending-multi-site-manager-using.html

I hope to have this all written up and reviewed and released by Fri.

Avatar

Level 4

Hi

Is your action getting trigger when you do rollout first time? 

TIA

Avatar

Correct answer by
Level 10

We completed this draft of the article - it is invoked when we Activate the page - as an example: 

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

So yes - the rollout page is activated and the custom logic writes info to the log file. The code works as specified in the artilce. 

Avatar

Level 10

Yes - it teaches you how to successfully build a custom rollout action. The code compiles and is invoked when a new LiveCopy page is activated. 

Avatar

Level 1

Hi smacdonald2008

i am trying to follow same steps for creating custom rollout action at aem 6.4 sp2 but getting below error -"com.day.cq.wcm.msm.impl.RolloutConfigManagerFactoryImpl RolloutConfig /apps/msm/test/rolloutconfigs/examplerolloutconfig/jcr:content is invalid: Failed to resolve Factory with id exampleLiveAction, maybe Service is uninstalled".

is there anything changed in 6.4 to create custom rollout action?

Thanks

Avatar

Level 1

@smacdonald2008 ,

I'm going throw the same issue. I have already succeeded in AEM 6.3.

BUT in AEM 6.4.8

even following this doc: https://docs.adobe.com/content/help/en/experience-manager-64/developing/extending-aem/extending-msm.....

 

and having the same code source than: https://github.com/Adobe-Marketing-Cloud/experiencemanager-java-msmrollout/blob/master/MyLiveActionF...

 

and using the same dependencies in my pom.xml ... I have the same error:

om.day.cq.wcm.msm.impl.RolloutConfigManagerFactoryImpl RolloutConfig /apps/msm/wcm/rolloutconfigs/custom-live-copy/jcr:content is invalid: Failed to resolve Factory with id exampleLiveAction, maybe Service is uninstalled 

 

do you have or anybody else any idea on how to resolve this.

 

Thank you