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: 645
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?
Free Switch scripts: open-automation @ GitHub
Free Switch apps: open-automation @ Enfocus appstore

Want to hire me? I'm looking for my next gig. Contact me on LinkedIn or via email.
3f8h.net
Member
Posts: 26
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
Orchestrating publishing workflows since 1999

Oswald-Haug-Weg 3 / D-79312 Emmendingen
Tel +49 7641 967 36 9-0 / Fax +49 7641 967 36 9-9
sna@3f8h.net / https://3f8h.net
_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