AEM Workflow to push content from one server to another server | Community
Skip to main content
Level 3
Jan 20, 2018 12:59 PM UTC
Solved

AEM Workflow to push content from one server to another server

Hi Team,

I need to write a workflow to move the modified content from one server to another server programmatically.

Like if i change a any content in Server  A and if i start a workflow in server A and start my workflow, the modified page should be moved to server B

Any inputs will be helpful.

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
Employee
Jan 21, 2018 6:09 PM UTC

Hi,

let me ask the question, why you would need to copy to another authoring instance. In "traditional" AEM setups that's never the case. So can you elaborate on your requirements?

And technically replication is fine (the author does not care, what role the target system has), but replication has some edge-cases, which doesn't it make suitable for all kinds of "AEM-to-AEM" content transfers. For example, ACLs are not transfered.

kind,

Jörg

4 replies

smacdonald2008
Level 10
Jan 23, 2018 7:37 PM UTC

As Joerg points out - moving content to author from author is not a typical use case.

Translate
joerghoh
joerghohAccepted solution
Employee
Jan 21, 2018 6:09 PM UTC

Hi,

let me ask the question, why you would need to copy to another authoring instance. In "traditional" AEM setups that's never the case. So can you elaborate on your requirements?

And technically replication is fine (the author does not care, what role the target system has), but replication has some edge-cases, which doesn't it make suitable for all kinds of "AEM-to-AEM" content transfers. For example, ACLs are not transfered.

kind,

Jörg

Translate
Level 3
Jan 21, 2018 4:19 PM UTC

The above link shows replication of content to specific publishers, is there any way to move content from one author to other author,

The requirement is like to move the content from one author to another author

Like i thought of creating package of modified content programatically and installing it to different author through code.

Is this the right approach?

Translate
edubey
Level 10
Jan 21, 2018 3:19 PM UTC

You can configure replication agents for content with user access [0] to specific server

Once that is done, Use replicator API where you can use configure replication agent ( will be defined in ReplicationOptions)[1] in workflow code.

[0] http://aemfaq.blogspot.in/2013/05/how-to-configure-replication-agent-to.html

[1] https://helpx.adobe.com/experience-manager/6-3/sites/developing/using/reference-materials/javadoc/com/day/cq/replication/ReplicationOptions.html

Translate