AEM transfer usergenerated content from publish to author | Community
Skip to main content
New Participant
Feb 21, 2018 1:50 PM UTC
Solved

AEM transfer usergenerated content from publish to author

I need to notify 'content-author' group about mistakes.

So I have kinda UI form with message parameter on publish and need to notify users on author instance.

I can't use reverse-replication agent (I already find solution with it).

So I would appreciate any help with it.

It should be some 3rd party technology, that will help me with it.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Julio_Tobar
Julio_TobarAccepted solution
Level 3
Feb 22, 2018 8:07 PM UTC

All you need to do is implement an "Sling Event Handler" running in pulbish.  This handler should:

1. Capture the Event of "New Message for Authors" that your form will trigger

2. Send a POST request to the Author passing proper parameters. It'll be SlingPostServlet in the Author that will create proper Node and properties with information about the message

3. Upon POST request return you need to check status and should this be "200 OK" you can go ahead and mark your "New Message For Authors" as "SENT TO Author instance"

Regards,

5 replies

smacdonald2008
Level 10
Feb 22, 2018 8:14 PM UTC

Nice suggestion!

Translate
Julio_Tobar
Julio_TobarAccepted solution
Level 3
Feb 22, 2018 8:07 PM UTC

All you need to do is implement an "Sling Event Handler" running in pulbish.  This handler should:

1. Capture the Event of "New Message for Authors" that your form will trigger

2. Send a POST request to the Author passing proper parameters. It'll be SlingPostServlet in the Author that will create proper Node and properties with information about the message

3. Upon POST request return you need to check status and should this be "200 OK" you can go ahead and mark your "New Message For Authors" as "SENT TO Author instance"

Regards,

Translate
Hemant_arora
Level 8
Feb 22, 2018 9:47 AM UTC

You may try using event listeners

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

Translate
New Participant
Feb 22, 2018 9:08 AM UTC

Actually, I'm currently using workflow that notifies group of users via Inbox Notification with help of reverse-replication.
So the question is how I can do it without reverse-replication. So I'm looking for helpful advices/tutorials/links of how I can achieve this. How can I write such kind of workflows etc.
Unfortunately, I haven't received any helpful information from your answer, but thanks.

Translate
smacdonald2008
Level 10
Feb 21, 2018 5:48 PM UTC

If i had your requirement and wanted to notofy a group of authors - i would look at writing a workflow that I could invoke and then it would notify the authors via email. Building custom workflow (some of which use custom workflow steps) is a powerful part of the AEM product.

Translate