How to create a live copy in a workflow | Community
Skip to main content
Level 2
Oct 16, 2015 2:26 AM UTC
Solved

How to create a live copy in a workflow

I am looking for a way to create a live copy out of a workflow using the server API.
There are methods to get current live copies, but I don't see anywhere
one for creating a new live copy.
Is there anyway to programmatically create a live copy?
One example how to do it?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Scott_Brodersen
Scott_BrodersenAccepted solution
Level 8
Oct 16, 2015 2:26 AM UTC

I've never used it, but the LiveCommand class has a CreateLiveCopy method: http://dev.day.com/docs/en/cq/current/javadoc/com/day/cq/wcm/msm/common/LiveCommand.html

scott

edit: fixed the link

4 replies

karttikm5563632
New Participant
May 9, 2019 10:33 AM UTC

This question is still unanswered. kautuk sahni​ bslokesh​, do we have any alternative API for LIveCommand for AEM 6.3 and above?

Translate
New Participant
Aug 17, 2017 2:25 PM UTC

Hi Scott,

Please, could you provide the equivalent class or method for AEM6.3 Java API ?

  • com.day.cq.wcm.msm.common.LiveCommand seems to be not available anymore with AEM.

Thanks

Translate
Scott_Brodersen
Scott_BrodersenAccepted solution
Level 8
Oct 16, 2015 2:26 AM UTC

I've never used it, but the LiveCommand class has a CreateLiveCopy method: http://dev.day.com/docs/en/cq/current/javadoc/com/day/cq/wcm/msm/common/LiveCommand.html

scott

edit: fixed the link

Translate
Level 4
Oct 16, 2015 2:26 AM UTC

Hi Scott.

Please, could you provide the equivalent class or method for AEM 6 Java API? I can't find it!

Thank you very much.

Regards,

Translate