Archive File
Overview
The Archive File Component allows users to archive a file stored on the system using its unique file ID. This ensures efficient storage management and facilitates long-term data retention.
Usage
This component is used to create an archive of a specific file, making it useful for workflows that require file compression or long-term storage solutions.
Properties
fileId
string
The unique identifier of the file to be archived.
Input Ports
in
Accepts the file ID to be archived.
Output Ports
out
Emits the archived file's ID upon successful archival.
Processing Logic
Receives Input Data:
Accepts a file ID (
fileId
) from the input.
Archives the File:
Calls the system’s file archiving function.
Handles Success & Errors:
If successful, sends the archived file’s
fileId
to theout
port.If an error occurs, the process fails silently or throws an appropriate error.
Output Data Schema
fileId
string
The unique identifier of the archived file.
Notes
Ensures File Retention: Helps store files in an archived state for long-term preservation.
Works with File Storage Systems: Compatible with various file storage mechanisms.
Ideal for Data Management Workflows: Supports automated file compression and archival processes.
This component is essential for workflows that require archiving files for future retrieval or compliance purposes.
Last updated