This task creates a Zip file based on a given full file path with file name and a list of files to Zip. The task allows the user to decide whether to overwrite the Zip file if it exists or not and will report to a specified reporting Constant that will list the number of files added to the Zip, or an error condition prefixed with #ZPERROR.
Property Name | Description |
---|---|
Title | Changes the Title (not the name) of the task. |
ZIP File Name | Full file name and path for the Zip file to create, including extension. |
File Name List | Pipe bar (|) delimited file list with full paths and extensions. |
Overwrite ZIP | TRUE to overwrite an existing Zip, FALSE to keep existing file. |
Result Constant | The name of the Constant that the result will be posted to (with or without the DWConstant prefix). |
When this Task is added the properties are static. To be able to build rules on a static property see How To: Change A Static Property To A Dynamic Property.
Property Name | Example Rule | Example Result | Meaning |
---|---|---|---|
ZIP File Name | "C:\MyDocuments\Specifications\" &DWSpecificationId&"Info.zip" | C:\MyDocuments\Specifications\Shelving 9999\Info.zip | This will be the name and full file path of where the zip file will be located. |
File Name List | "C:\MyDocuments\Documents\WarrentyPolicy.pdf| C:\MyDocuments\Documents\Catalog.pdf" | C:\MyDocuments\Documents\WarrantyPolicy.pdf| C:\MyDocuments\Documents\Catalog.pdf | This is a pipebar (|) delimited list of all the files and there full paths to be included in the Zip file. This example shows a warranty policy and catalog that would be zipped. |
Overwrite ZIP | TRUE | TRUE | TRUE will overwrite the Zip file if it already exists FALSE will not. |
Result Constant | "DWConstantReport" | DWConstantReport | This is the name of the Constant that the Macro Task will report to. |
This task has different types of Outputs. For more information about Outputs see Specification Macros Task Node.
Outputs are only available within Specification Macros. Currently Outputs are not available for Specification Flow.
This task supports Status Outputs. These can be used to perform different actions depending on what the status outcome of the task is. For more information see Status Outputs in the Task Node Outputs section of Specification Macros Task Node.
The status output navigation is as follows:
Success (one of the following occurred)
Success with Warnings (one of the following occurred)
Failed (one of the following occurred)