Data retention and archiving
Archive the repository objects you no longer work with, restore them while they're in the archive, and let iGrafx destroy them when the archive retention period ends. The destruction log records each destroyed object.
Retention rules archive, move, or delete objects on a schedule. Each rule finds its objects with an iGrafx Query Language (IQL) query.
Prerequisites
- An administrator must enable the Data Retention Policies Early Access feature under Admin → Server Settings → Early Access.
- You need the Manage Retention Policies and Archive repository permission. An administrator grants it to a repository role under Admin → Security Roles → Repository Roles and assigns the role under Repository Role Assignments.
- To archive an object, you also need the right to delete it.
- To manage retention rules, you also need the Set Any Item Permissions repository permission.
- To change the retention periods, you also need the Manage Repository Configuration repository permission.
Steps
Archive an object
Archiving deactivates the object's relationships, so diagrams, reports, and analyses that use the object can change. To see what uses the object first, run a narrative report or an IQL query on it.
- In the Model area, open the object, click the three-dot icon next to its name, tooltip More Options, and select Archive. In the repository tree, the object's context menu offers the same action as Archive Object.
- Optionally, enter an archival comment.
- Click Archive.
Archiving an object also archives its child objects. The objects leave the repository tree, and their running cycles are canceled. iGrafx keeps their properties and relationships, so a restore can bring them back. Shortcuts that point to the archived objects are deleted permanently.
The archive runs as an Object Archive background job. The Status Log shows the result for each object.
To archive many objects at once, use a bulk operation from the Full Screen Tree View or on the results of a search.
Archiving needs the same rights as deleting. You can't archive a template folder, a default narrative, a default platform object, or part of an IGX file. A checked-out object can be archived.
View and restore archived objects
- In the navigation rail, select Archive, below Recycle Bin. Only users with the Manage Retention Policies and Archive permission see it.
- Find the object. The list shows Archived By, Archived On, and the Archival Comment for each object.
- Select the object's checkbox and click Restore.
The restore runs as an Object Restore background job. It brings back the object, its child objects, and the relationships that archiving deactivated. Cycles that archiving canceled stay canceled.
When the original name is taken, the restored object gets a number added to its name. When the object's parent is archived or deleted, the object is grayed out, and you can restore it only after its parent is restored.
The Archive is separate from the Recycle Bin.
Create a retention rule
A retention rule uses an IQL query to find objects in the repository. Each time the rules run, the rule archives, moves, or deletes the objects the query finds.
- Open Repository → Policies and select the Retention Policies tab.
- Click Create rule.
- Under Rule details, enter a Rule name and, optionally, a Description. Click Continue.
- Under Select objects, enter the IQL query that finds the objects. To have Pia write it, see Write the query with Pia.
- To check the query, click Preview affected objects. Then click Continue.
- Under Configure action, select what the rule does with the objects:
- Move to folder: moves them to a folder you choose in this repository.
- Archive: moves them to the repository's Archive.
- Move to Recycle Bin: moves them to the Recycle Bin, where they can be restored until it's emptied.
- Delete permanently: deletes them without moving them to the Recycle Bin. You can't undo it.
- For Move to folder, choose the Destination folder, and set the destinations under Destinations for objects with their own root folder.
- Click Continue to open the review step.
- In the bar at the bottom, next to Status, select Active or Inactive.
- Check the summary, then click Save and activate or Save as inactive. To finish the rule later, click Save draft.
Preview affected objects lists up to the first 1,000 objects that match the query at that moment. It lists only objects you can view. The rule acts on every matching object, as Schedule and order the rules explains.
A move sends objects that can be stored in any folder to the Destination folder. Processes, risks, resources, and similar objects belong under their own root folder, so each root folder has its own destination. Each destination starts as the root folder itself. Objects whose root folder has no destination stay where they are.
A rule can be active only when it has a name, a valid IQL query, an action, and, for a move, a destination that still exists. Until then, the bar at the bottom of the editor shows how many items need attention.
Write the query with Pia
Pia writes the rule's IQL query from your description. The Describe it with Pia button appears only when an administrator has turned on Pia for Reports and Search. See Turn Pia on.
- In the rule editor, under Select objects, click Describe it with Pia.
- In the Pia panel, describe the objects the rule should find.
- Check the query Pia puts in the IQL query field, and click Preview affected objects to see what it matches.
When the field already holds a different query, Pia's query replaces it. The message Pia replaced your query. then offers Undo. Pia can be wrong, so check its query before you activate the rule.
Schedule and order the rules
All active rules in a repository run together, one after another, in priority order. Each rule runs its query only after the previous rule finishes, so a later rule sees what an earlier one did.
- On the Retention Policies tab, select how often the rules run under Rule schedule:
- Every day
- Every Sunday
- On the 1st of every month
- To change the order, click Reorder. Drag the rules into place, or use the Move up and Move down arrows.
- Click Save order. The rule at the top runs first.
Every run starts at 2:00 AM Coordinated Universal Time (UTC). The text next to Rule schedule shows the next run in your time zone. When a server setting sets the schedule, Rule schedule shows Set by the server, and you can't change it.
Rules run as the built-in iGrafx System user, which can see and act on every object in the repository. It doesn't matter who created or last edited the rule. When an active rule's query is no longer valid, or its move destination was deleted or archived, the rule doesn't act, and the run sets it to Inactive.
Edit or delete a rule
- Edit: click the rule's name, or the pencil icon in its row, labeled Edit followed by the rule name.
- Delete: click the three-dot icon in the rule's row, labeled More actions for followed by the rule name. Then click Delete and confirm.
You can't undo deleting a rule.
Set the retention periods
- Open Repository → Policies and select the Retention Policies tab.
- In Archive retention period, enter the number of days an object stays in the archive. After that, iGrafx destroys the object and adds it to the destruction log. The default is 2557 days.
- In Destruction log retention period, enter the number of days a destruction log entry is kept. The default is 180 days.
Each value saves when you leave the field. Destruction of due objects and removal of expired log entries run once a day, so a changed period takes effect at the next daily run.
Download the destruction log
The destruction log records which objects were destroyed, and when. Each entry holds only the object's ID and the destruction date and time.
- On the Retention Policies tab, click Download destruction log.
- Open the Excel file. It lists every destroyed object whose entry is still within the destruction log retention period.
Limitations
- You can't undo destruction. Once the archive retention period ends, the object can't be recovered.
- The destruction log records only object IDs and dates, without names or users. Write archival comments that say what each object is while it's still in the archive.
Related
- Governance
- Restore items from the Recycle Bin: the Recycle Bin, where deleted objects go.
- Narrative reports: check an object's dependencies before you archive it.
- Use IQL in a report
- Set policies