Expand my Community achievements bar.

Adobe Summit is live! Tune in to take part in the premier digital experience event.
SOLVED

AEM watching external hotfolder

Avatar

Former Community Member

Is this possible? I want to watch a folder on an outside server or maybe even a local folder that exists on the same server as AEM.

 

Thanks!

1 Accepted Solution

Avatar

Correct answer by
Administrator

Hi 

As correctly mentioned by Jorg, you can listen a folder and when there is change in it, launch the workflow.

Adding a reference article covering "Listening a workflow event ":

Link:-http://blogs.adobe.com/experiencedelivers/experience-management/event_handling_incq/

 

Option 2:

You can create a custom component/Service to monitor local file system directory, and you can trigger anything in it when there is a event for change in folder.

Reference link to the library(java.nio.file) :- http://www.codejava.net/java-se/file-io/file-change-notification-example-with-watch-service-api

                                                               http://www.rgagnon.com/javadetails/java-0617.html

                                                               // jpoller, JNotify etc 

PS: Option 1 would be my preference among these two options.

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

View solution in original post

4 Replies

Avatar

Level 10

describe your use case in more detail.

Avatar

Former Community Member

I want this to be a hot folder, when file's appear there I want AEM to ingest it and run a workflow. Possibly spit it out

to a different external folder as well.

A different department will be constantly pushing out files to this hot folder.

Avatar

Employee Advisor

An approach, which can work:

  • Mount a folder of AEM using WebDAV into a regular filesystem
  • Let the other departments upload their files there
  • configure a dedicated workflow launcher to perform a workflow upon changes in this folder

It's a simple approach you can try first, because it doesn't require any kind of programming.

Jörg

Avatar

Correct answer by
Administrator

Hi 

As correctly mentioned by Jorg, you can listen a folder and when there is change in it, launch the workflow.

Adding a reference article covering "Listening a workflow event ":

Link:-http://blogs.adobe.com/experiencedelivers/experience-management/event_handling_incq/

 

Option 2:

You can create a custom component/Service to monitor local file system directory, and you can trigger anything in it when there is a event for change in folder.

Reference link to the library(java.nio.file) :- http://www.codejava.net/java-se/file-io/file-change-notification-example-with-watch-service-api

                                                               http://www.rgagnon.com/javadetails/java-0617.html

                                                               // jpoller, JNotify etc 

PS: Option 1 would be my preference among these two options.

Thanks and Regards

Kautuk Sahni



Kautuk Sahni