Archive process contexts
- UpdatedAug 1, 2024
- 3 minutes to read
- Xanadu
- Create Workflows
Improve database query performance by archiving unneeded records for playbooks that are in a Complete, Error, or Cancelled state.
Before you begin
Role required: admin or playbook.admin
About this task
Depending on how many playbooks you have run, you may have hundreds or thousands of records in your database that aren't used anymore. Reduce the number of records that your database queries have to search through by archiving the records for playbooks that are in a Complete, Error, or Cancelled state.
- created in a Xanadu instance,
- in a Complete or Cancelled state,
- for a playbook that hasn’t been edited within 14
days.Note: You can adjust the number of days. To learn more about configuring archive settings, see Configure archive settings for process contexts.
If you don't want context records to automatically be archived, see Turn off automated archiving.
- element mapping [
sys_element_mapping] - context log [
sys_pd_context_logs] - variable value [
sys_variable_value] - activity context [
sys_pd_activity_context] - stage context [
sys_pd_lane_context]
Flow context (sys_flow_context) records are also deleted automatically 2 weeks after completion. For more information about flow data retention, see Flow execution details retention.
Procedure
- Navigate to All, and enter sys_pd_context.list in the Filter field to open the [sys_pd_context] table.
- Select the check boxes next to the executions that you want to archive context records for.
- In the upper right corner, select Archive Process Contexts from the action menu.
- Confirm that you want to archive the process contexts.
Result
The context records are archived for your selected process executions.
Example: Archive context records for an execution

What to do next
Configure the form layout for process executions so that you can see the archived data. To learn more about configuring the form layout for a process execution, see View archived process contexts.