Aging and archiving Encyclopedia volume items : Aging and archiving an item using the Actuate Information Delivery API : Setting and updating autoarchive rules using IDAPI
 
Setting and updating autoarchive rules using IDAPI
Use the following Actuate Information Delivery API operations to set autoarchive rules programmatically:
*SubmitJob and UpdateFile
To set archive rules when you use SubmitJob, set one or more elements of ArchiveRule.
To add or update autoarchive rules for an existing file or folder, use the SetArchiveRules, AddArchiveRules, or RemoveArchiveRules suboperations of UpdateFile. Each of these suboperations has an ArchiveRule element.
You can set the following elements of ArchiveRule, described in Table 13‑1.
Table 13‑1 ArchiveRule elements 
Element
Description
ArchiveOnExpiration
True if you want to archive the file before the system deletes it.
ExpirationAge
The number of minutes before expiration. If you set ExpirationAge, you cannot set ExpirationTime.
ExpirationTime
The time of day for the expiration. If you set ExpirationTime, you cannot set ExpirationAge.
ExpireDependentFiles
True if dependent files expire with the original file.
FileType
The file type to which the rule applies. To set the rule for a folder and its subfolders, specify Directory.
InheritedFrom
The source of an inherited rule.
IsInherited
True if the item inherits archiving rules. If this element is True, the system ignores all other elements except FileType.
NeverExpire
True if the file does not have an expiration date or expiration age. If this element is True, the system ignores ExpirationAge and ExpirationTime.
*UpdateJobSchedule
Use the SetParameters suboperation to change the autoarchive rules for the job output file. You can change the following archive-related elements of SetParameters, described in Table 13‑2.
Table 13‑2 Archive-related elements of SetParameters 
Element
Description
ArchiveOnExpire
True if you want to archive the file before the system deletes it
ArchiveRuleInherited
Indicates whether the job output file inherits archive rules
ExpirationAge
The number of minutes before the output file expires
ExpirationDate
The date on which the output file expires
NeverExpire
True if the file does not have an expiration date or expiration age
*UpdateVolumeProperties
Use the SetAutoArchiveSchedules suboperation to update the autoarchive schedule details for the volume.