FilesCompressActivity
Category: File Operations Namespace: CMS.Plugin.FlowManagement.Domain.FlowBusiness.Activitys Base Class: ActionActivity Module: FlowManagement.Domain
Overview
FilesCompressActivity (Compress Files) is a node used to compress multiple files into a ZIP file within a process. It inherits from ActionActivity and uses the SharpZipLib library for compression, supporting simultaneous compression of multiple files.
Configuration Description
| Property Name | Type | Required | Default | Description |
|---|---|---|---|---|
| FilePaths | string | Yes | - | File paths, multiple files separated by commas |
| ArchivePath | string | Yes | - | Compressed file archive path (.zip) |
Usage Examples
{
"Type": "FilesCompressActivity",
"Name": "Compress Report Files",
"Alias": "CompressReports",
"FilePaths": "C:\\Reports\\report1.pdf,C:\\Reports\\report2.pdf,C:\\Reports\\data.xlsx",
"ArchivePath": "C:\\Archive\\reports.zip"
}
Notes
- ⚠️ If a file does not exist, a warning is recorded and that file is skipped.
- 💡 Multiple file paths are separated by commas.
- 💡 Compression level is fixed at 9 (highest compression rate).
Related Nodes
- FileUncompressActivity: Uncompress File Node
- DirectoryCompressActivity: Compress Directory Node
Update History
| Date | Version | Description |
|---|---|---|
| 2025-11-28 | 1.0 | Initial version |
Last updated: 2025-11-28