Reading arguments or a file from workflow dialog box
Hi I'm a new developer to the AEM platform and i'm currently trying to create a custom process step which processes a text file (contains some file names) which will be uploaded to the workflow and then it finds those file names in a different folder of the DAM and does a different process with it.
Now my question is how would I read that txt file?
My guess is to use the resource factory?
private ResourceResolverFactory resourceResolverFactory;
ResourceResolver resolver=null;
resolver = resourceResolverFactory.getAdministrativeResourceResolver(null);
Resource res=null;
res= resolver.getResource("PATH");
Also can you guys let me know if this post is on the right track, it shows multiple methods but i strictly want a file being uploaded.
http://www.wemblog.com/2011/10/how-to-read-external-file-in-cq.html
Thanks,
Ram