AEM watching external hotfolder | Community
Skip to main content
May 17, 2016
Solved

AEM watching external hotfolder

  • May 17, 2016
  • 4 replies
  • 1943 views

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!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by kautuk_sahni

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

4 replies

smacdonald2008
May 17, 2016

describe your use case in more detail.

May 17, 2016

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.

joerghoh
Adobe Employee
Adobe Employee
May 17, 2016

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

kautuk_sahni
Community Manager
kautuk_sahniCommunity ManagerAccepted solution
Community Manager
May 18, 2016

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