Sub-Pipeline : GetUnzipFile
Review the GetUnzipFile sub-pipeline when scheduling inventory imports.

- Script (bc_api). Call Get
Unzip.ds. This script unzips a file.
| Variable | Type | Comment |
|---|---|---|
@input ZIPFileName
|
String
|
The file name of the .zip file |
@input
SourceDirectory
|
dw.io.File
|
The processing directory where the file is located |
@input importLogger
|
Object
|
import logger |
@output
UnzipDirectory
|
dw.io.File
|
The unzip directory where the extracted import file is located |
@output ZIPFile
|
dw.io.File
|
The .zip file |
@output importLogger
|
Object
|
import logger |
@output importError
|
Object
|
import error |
- Script (bc_api). Calls
GetFilesFromDirectory.ds. This script retrieves a file list from an FTP/HTTP(S) server.Variable Type Comment @input Directorydw.io.Filethe directory to browse @input SortDirectionString'ASCENDING' or 'DESCENDING' @input NamePatternStringThe pattern for the filenames (use ".*" to get all) @input importLoggerObject import loggerinput for import logger @output FileListdw.util CollectionThe files matching the pattern @output importLoggerObject import loggerdebug output for import logger @output importErrorObject import errorerror output for import logger - Loop : UpzipFiles[]
- Pipelet : Script (bc_api). Calls
RenameFile.ds. - Pipelet : Eval (bc_api). Delete the
original Import .zip file with
ZipFile.remove(). - Pipelet: Assign (bc_api). Set the following
value.
ImportFile = UnzipFile.name - Loop to UnzipFiles[] until all files are processed.
- Pipelet : Eval (bc_api). Delete the
original Import .zip file direcctory with
UnzipDirectory.remove(). - Continue after calling node.