Expand my Community achievements bar.

SOLVED

Publish assets automatically on folder

Avatar

Former Community Member

Hello, I want to publish an asset instantly as it's dropped into a specific folder.

How can I do this?

 

Thanks!

1 Accepted Solution

Avatar

Correct answer by
Administrator

Hi 

For Replication Package, please have a look at :- http://stackoverflow.com/questions/18955982/how-to-activate-programmatically-a-page-in-cq5-workflow

and 

Option 2 [Not tried, but could work]

Activate the page/assets on modification using Workflows

Link:- http://adobeaemclub.com/publish-assets-on-modification-using-workflow-launcher-in-aem/

[img]http://adobeaemclub.com/wp-content/uploads/2016/01/Workflow-Launcher.png[/img]

 

I hope this would help you.

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

View solution in original post

3 Replies

Avatar

Level 10

You can write a Java program to watch a specific folder on the desktop.

https://docs.oracle.com/javase/tutorial/essential/io/notification.html

WHen you drop a file in a Java Watch Folder- post the file to an AEM sling settler. In the servlet - place the file in the DAM. Then use this API to replication content:

https://docs.adobe.com/docs/en/aem/6-0/develop/ref/javadoc/com/day/cq/replication/package-summary.ht...

Avatar

Former Community Member

Is there a example of this anywhere?

Not too familiar with this Replication Package

Avatar

Correct answer by
Administrator

Hi 

For Replication Package, please have a look at :- http://stackoverflow.com/questions/18955982/how-to-activate-programmatically-a-page-in-cq5-workflow

and 

Option 2 [Not tried, but could work]

Activate the page/assets on modification using Workflows

Link:- http://adobeaemclub.com/publish-assets-on-modification-using-workflow-launcher-in-aem/

[img]http://adobeaemclub.com/wp-content/uploads/2016/01/Workflow-Launcher.png[/img]

 

I hope this would help you.

Thanks and Regards

Kautuk Sahni



Kautuk Sahni