Getting a list of files and adding it to the result stream

There is a nifty sounding job entry called “Add filenames to result” that would be really cool to use if it were better documented. This step lets you specify multiple directories and regex patterns for a set of files to look for, then puts all matching filenames on the “result”.

So, what is the “result”? In this case, “result” means some data that is transferred from one job entry to the next. In the case of a list of files, this means the “Add filenames to result” entry will makes these filenames available to other job entries, presumably.

So, which job entries can use this list? This list is based off of a source code search for “getResultFilesList()” and “getResultFiles()”, which are methods of class Result. The last column “Reads file list” indicates that that component actaully reads the filenames from the list rather than setting or clearing it. These components would actually do something with the list of files.

ClassnameCategoryComponent nameCommentsReads file list
JobEntryMSAccessBulkLoadBulk loadingMS Access Bulk LoadImports multiple specified files into an Access file. Optionally adds imported files to list of files
JobEntryMssqlBulkLoadBulk loadingBulkLoad into MSSQLImports a specified file into an MS Sql database. Optionally adds imported file to list of files
JobEntryMysqlBulkFileBulk loadingBulkLoad from MySQL into fileExports a mysql database to a file. Optionally adds imported files to list of files
JobEntryMysqlBulkLoadBulk loadingBulkLoad into MySQLImports a specified file into a MySql database. Optionally adds imported file to list of files
JobEntryAddResultFilenamesFile managementAdd filenames to resultlets you specify multiple directories and filenames/wildcards to add to the list of files. option to clear out a previous list of files first
JobEntryCopyFilesFile managementCopy fileslets you copy folders/files, and the copied files are added to the list of files. no option to clear previous file list
JobEntryCopyMoveResultFilenamesFile managementCopy or move result filenameswill copy or move files in the file list. can optionally add the new filenames to the list. can optionally remove the old filenames from the listX
JobEntryCreateFileFile managementCreate fileWill create a file. Can optionally add it to the list of files
JobEntryDeleteResultFilenamesFile managementDelete filenames from resultdeletes some or all of the files from the list of files. does NOT actaully delete the file from diskX
JobEntryFileCompareFile managementFile compareCompares two files. Optionally adds both filenames to list of files
JobEntryHTTPFile managementHTTPGets or uploads a file using HTTP. Will add a retrieved filename to the list of files
JobEntryMoveFilesFile managementMove Fileslets you specify multiple directories and filenames/wildcards to be moved. optionally adds the new filenames to the list of files
JobEntryUnzipFile managementUnzip fileWill unzip a file to a specified folder, including/excluding specified wildcards. Optionally adds filenames to list
JobEntryWaitForFileFile managementWait for fileWill wait for a file to show up - cannot use wildcards to specify file, only waits for a single file. Optionally adds the filename to the list
JobEntryZipFileFile managementZip fileZips a set of files. Optionally adds zip file to list of files
JobEntryFTPFile transferGet a file with FTPgets files from FTP. optionally adds files to list
JobEntrySFTPFile transferGet a file with SFTPgets files using SFTP. optionally adds files to list
JobEntrySFTPPUTFile transferPut a file with SFTPputs files using SFTP. optionally adds uploaded files to list
JobEntryJobGeneralJobRuns a job. Will add the log file to the list of files if specified
JobEntryTransGeneralTransformationRuns a transformation. Optionally, will clear out the list of result filenames before running. If a logfile is specified, will add the log file to the list of files
JobEntryMailMailMailallows you to email the list of files as individual attachments or a zip fileX
JobEntryExportRepositoryRepositoryExport repository to XML fileexports the repository to an xml file. optionally adds the file name to the list of files
JobEntryXMLWellFormedXMLCheck if XML file is well formedChecks XML files for well formedness. Optionally adds all/good/bad files to list
JobEntryXSLTXMLXSL TransformationTransforms a single XML file. Optionally adds the transformed file to list