The Zip Handler worker it's used to handle .zip files inside the Everysk platform. It can be used to compress files from the platform or from a workflow inside a .zip file, or decompress a .zip file and save the decompressed files inside the platform or just use them in the flow.
Parameters
The Zip Handler worker must receive specific parameters in order to execute properly. When parameters are not set correctly it may cause the worker to not work as expected. The parameters are separated in the following tabs: Input and Output.
1. Input
The Input tab contains parameters which are consumed by the worker, in order to execute it's calculations or actions.
1.1 Operation
Select whether the Zip Handler will work to zip files or unzip a compacted file using Select variant. After selecting an option, the Output tab will appear in order to the worker receive more information.
Zip Operation
Select this option to compact files inside a .zip file.
1.2 Files
Select files to compress to a .zip file using Upstream Data, Tag Latest, Tag List or Select File variants. To add more files click on the Add File button.
1.3 Workspace
Set the research workspace of the input files using Fixed Workspace variant.
Unzip Operation
Select this option to decompress files from a .zip file.
1.2 File
Select a .zip file to decompress using Upstream Data, Tag Latest, Tag List or Select File variants.
1.3 Workspace
Set the workspace where the files will be sourced from/saved to using Fixed Workspace variant.
2. Output
The Output tab contains parameters that defines the worker execution results, and how it will be provided to downstream workers.
Unzip Operation
Set the output information for an unzip operation.
2.1 Output Mode
Select whether the unzipped file objects will be returned in a separate downstream flow using parallelism or a single downstream flow using Select variant.
You can read the The Worker Structure article to learn more about parallelism.
2.2 Tags
Set the unzipped files tags using Fixed Tags or Upstream Data variants.
2.3 Store Unzipped Files
Select whether the unzipped files will be saved inside the Everysk Platform or not using Select variant.
Transient
The unzipped files will not be saved in the platform, but will be accessible to the next workers in the workflow.
Create
The unzipped files will be saved in the platform in the Files tab and will also be accessible for the next workers in the workflow.
2.3 Workspace
Set the workspace in which the unzipped files will be saved on the platform using Fixed Workspace variant. The files will be inside the Files tab in that workspace
Zip Operation
Set the output information for a zip operation.
2.1 Name
Set the .zip file name using Template Text or Upstream Data variants.
2.2 Workspace
Set the workspace in which the file will be saved on the platform using Fixed Workspace.
2.3 Tags
Set the file tags using Fixed Tags or Upstream Data variants.
2.4 Storage Mode
When generating the .zip file, you can choose whether this file will be saved in the platform or not through the Storage Mode button. This button has two options: Transient and Create.
Result
Once this worker finishes to execute successfully, it will return an object containing the generated file(s) to the workflow, which can be used by downstream workers. Below you can see an example of the Zip Handler's result object hierarchy. You can check the Output Types article to learn more about result objects types.
- File (file)
- ID (string)
- Name (string)
- Tags (list)
- Content-Type (string)
- Data (file_data)