Retrieving files based on the incoming XML file

Post Reply
_olq
Member
Posts: 36
Joined: Fri Aug 23, 2013 10:21 am
Location: Poland

Retrieving files based on the incoming XML file

Post by _olq »

I have an idea but I need your help,
Based on the incoming XML file I want to retrieve the files associated with it.
Flow it could look like this:

Image

Definitions for properties added to script flow element:
  • Folder - the folder that contains the files for retrive (Choose folder) required
  • FolderName - The name of the folder where the files are located (Variable) required
  • FileName1 - The file name (Variable) required
  • FileName2 - The file name (Variable) additional
  • FileName3 - The file name (Variable) additional
  • FileName4 - The file name (Variable) additional
  • FileName5 - The file name (Variable) additional
The script should check the indicated location and move the files to a folder named 'FolderName' together with an XML file.
If additional file name are filled (Ex. FileName2), all files should be in folder. But, if a fill are empty or does not contain a value (file name), do nothing.
If a fill contains a value but there is no file to move, send to 'Data error out'

Is it possible to do? I count on you guys.

Best regards,
Aleksander
Aleksander
User avatar
gabrielp
Advanced member
Posts: 577
Joined: Fri Aug 08, 2014 4:31 pm
Location: Boston
Contact:

Re: Retrieving files based on the incoming XML file

Post by gabrielp »

What you're trying to do sounds an awful lot like injecting. Have you played around with the Inject Job configurator yet?
Chat: open-automation @ gitter
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix
3f8h.net
Newbie
Posts: 15
Joined: Tue Mar 13, 2012 4:14 pm

Re: Retrieving files based on the incoming XML file

Post by 3f8h.net »

For those requirements we always use the job injector.
--
Sebastian Nafroth +++ 3f8h.net / electronic publishing

3f8h.net offers professional services and products for the graphic arts
industry.

contact details: http://www.3f8h.net/kontakt
_olq
Member
Posts: 36
Joined: Fri Aug 23, 2013 10:21 am
Location: Poland

Re: Retrieving files based on the incoming XML file

Post by _olq »

In fact, I've never used this configurator.

Is it possible to get more than one file and and choose which ones?
Aleksander
Post Reply