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!
Solved! Go to Solution.
Views
Replies
Total Likes
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
Views
Replies
Total Likes
describe your use case in more detail.
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
An approach, which can work:
It's a simple approach you can try first, because it doesn't require any kind of programming.
Jörg
Views
Replies
Total Likes
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
Views
Replies
Total Likes
Views
Likes
Replies