Leiste mit Community-Erfolgen erweitern.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.

GELÖST

AEM watching external hotfolder

Avatar

Ehemaliges Community-Mitglied

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 Akzeptierte Lösung

Avatar

Korrekte Antwort von
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

Lösung in ursprünglichem Beitrag anzeigen

4 Antworten

Avatar

Level 10

describe your use case in more detail.

Avatar

Ehemaliges Community-Mitglied

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

Korrekte Antwort von
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