Page 1 of 1

Retrieving files based on the incoming XML file

Posted: Fri Mar 27, 2015 1:22 pm
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

Re: Retrieving files based on the incoming XML file

Posted: Fri Mar 27, 2015 3:04 pm
by gabrielp
What you're trying to do sounds an awful lot like injecting. Have you played around with the Inject Job configurator yet?

Re: Retrieving files based on the incoming XML file

Posted: Fri Mar 27, 2015 3:12 pm
by 3f8h.net
For those requirements we always use the job injector.

Re: Retrieving files based on the incoming XML file

Posted: Fri Mar 27, 2015 3:32 pm
by _olq
In fact, I've never used this configurator.

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