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.
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.
The Input tab contains parameters which are consumed by the worker, in order to execute it's calculations or actions.
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.
Select this option to compact files inside a .zip file.
Set the research workspace of the input files using Fixed Workspace variant.
Select this option to decompress files from a .zip file.
Set the workspace where the files will be sourced from/saved to using Fixed Workspace variant.
The Output tab contains parameters that defines the worker execution results, and how it will be provided to downstream workers.
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.3 Store Unzipped Files
Select whether the unzipped files will be saved inside the Everysk Platform or not using Select variant.
The unzipped files will not be saved in the platform, but will be accessible to the next workers in the workflow.
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.
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
Set the output information for a zip operation.
Set the workspace in which the file will be saved on the platform using Fixed Workspace.
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.
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)