Title
Page icon
Create new category
Edit page index title
Edit category
Edit link
Archive Policy Guide
Early Access
An archive policy is used to determine how Process Instances will be archived and how long Process Instance data will be retained. Archive policies can also be configured to execute Cloud Functions as part of their routine. For more information on configuring Cloud Functions, see the Cloud Functions Guide .
Create an Archive Policy
A new archive policy can be created via the Backoffice application. There is a limit of 10 policy versions per tenant available.
Log in to the Backoffice and find the 'Archiving' tab from the leftmost vertical menu.
Under the 'Archiving' tab, select 'Policies'.

On the 'Archiving Policies' page, select the 'New Archiving Policy' button on the top-right of the screen.

The 'New Archiving Policy' page provides configuration options to define the new policy.

Field | Required | Description |
|---|---|---|
Archiving Policy Name | Yes | The name of the policy. |
Description | No | An optional description that can be used to further describe the policy. |
Protection Method | Yes | Determines the protection method used. This will be used to unlock the exported archive file of a Process Instance.
|
Deletion Period | Yes | If enabled, archived Process Instance data will be deleted after a set period of time. If disabled, archived Process Instance data will be stored indefinitely. |
Delete after (days) | No | The numbers of days Process Instance data will be retained. Only editable when Deletion Period is enabled. |
Cloud Function | No | An optional Cloud Function to execute alongside the Process Instance archiving. |
Once all details about the policy are defined, click the 'Save' button to finalize and create the policy.
Archive Password Length
When an archive policy password is greater than 100+ characters, it may not be possible to unzip the downloaded contents using some zip extraction software due to the large character length.
Create Archive Policy Using TrustX API
To utilize the TrustX API, an API key is required. Instructions on how to create an API key can be found in the API Keys Guide.
API Permissions: TNT#{tenantid}#ProcessManager:createArchivePolicy
Example Request:
Example Response:
Delete an Archive Policy
An archive policy or version can be deleted via the Backoffice or using the TrustX API. To delete an archive policy via the Backoffice, follow the steps outlined below:
Navigate to the 'Policies' page found under the 'Archives' tab.
Find the policy and expand the list of actions using the dropdown arrow.
Find the orange 'bin' icon to delete the required version.

Previously archived Process Instances will remain archived according to the policy. However, it will not be possible to archive new Process Instances using the deleted policy.
Delete an Archive Policy Using TrustX API
An archive policy can be deleted using the TrustX API. See the example request below as an example.
API Permissions: TNT#{tenantid}#ProcessManager:deleteArchivePolicy
Example Request:
Search Archive Policies Using TrustX API
Details of an archive policy can be returned using the TrustX API. This example demonstrates searching for a specific archive policy using the policy ID.
API Permissions: TNT#{tenantid}#ProcessManager:listArchivePolicies
Example Request:
Example Response:
Get Archive Policy Usage
Retrieves usage statistics for Archive Policies for a tenant, including the maximum allowed, total currently in use, and remaining capacity. Returns HTTP 200 on success.
API Permissions: TNT#{tenantid}#ProcessManager:getArchivePolicyUsage
Example Request:
Example Response:
List Archive Policies
Returns a paginated list of Archive Policies for a tenant. Results can be filtered by name using a wildcard prefix search via the nameLike parameter. Supports standard Spring Pageable query parameters: page, size, and sort. Returns HTTP 200 on success.
API Permissions: TNT#{tenantid}#ProcessManager:listArchivePolicies
Example Request:
Example Response:
Associated Cloud Function
Users can further customize what content is archived using Cloud Functions. Some examples of what data can be managed include:
include different data in different archives
only store face data in the archive
only store document data in the archive
store different archives for different periods of time
store only metadata in the archive
This section will describe how to configure a Cloud Function and provide some example use cases to configure what data is stored in the archive.
Create a Cloud Function
To create a Cloud Function, navigate to the 'Cloud Functions' page found in the left-side navigation bar of the Backoffice.
Click the "New Cloud Function' button to create a new Cloud Function. A popup modal will appear where a Cloud Function can be created from scratch or uploaded from an existing file. For this guide, a Cloud Function will be created from scratch.

The creation page provides a Python document where details of the Cloud Function can be defined.

Define the Cloud Function
TrustX provides the following archiving constants:
params['constants']['archiveBucket']= References the S3 bucket where all data is stored. This is required to reference the source path.params['constants']['archiveSrcPath']= Retrieves the source path of the archive where all data is stored.params['constants']['archiveDestPath']= A temporary directory that can be written to so that only specific data can be returned.
In the example below, only idDocs are archived.
Example:
From the example above, three variables are set that contain the archive constants.
The archive_write_path is set to the archive destination path which can be used for writing. In this example, idDocs will be archived. This process supports all session data that can be archived as part of a Process Instance.
For BYOK tenants, the KmsKey constant can be included to specify the exact key to pass to the archive. In the example above, this constant is stored in the kms_key_id variable.
All idDocs are written from the archive_src_path to the archive_write_path variable using the copy_recursive.
See Also
Archiving Process Instances - A guide that demonstrates how to integrate archiving Process Instances in your flow.
Searching Archived Process Instances - Demonstrates how to search archived Process Instances.