2022 April Release

Customization Point FSCCONFIG@1.1001:CPGetArchivingConfig Permanent link for this heading

This customization point allows simple archiving of a property. The archives will be added to a property and the objects will be moved into the archives. To start the archiving, ObjectListSetArchiveWrapper has to be called. It is usually called by the set action of the property that should be archived (attrdef).

Example:
customize CPGetArchivingConfig<ProjectReport, prreports> {
  cfgobjstomove = expression {
    datetime limit = coonow;
    limit.month -= 1;
    return cfgobjstoarchive[objcreated <= limit];
  }
  cfgtargetobj = expression { cooobj };
  cfgtargetobjattrdef = expression { #prreports };
  cfgarchiveclass = expression { #ScrumReportArchive };
  cgfarchivespan = expression { ArchiveSpan(AS_QUARTER) };
  cfgarchiveattrdef = expression { # objcreated };
}

any FSCCONFIG@1.1001:CPGetArchivingConfig(
  key ObjectClass cfgobjclass,
  key AttributeObjectDef cfgattrdef,
  object cfgobjstoarchive,
  out retval any cfgobjstomove,
  out optional Object cfgtargetobj,
  out optional AttributeObjectDef cfgtargetobjattrdef,
  out optional ObjectClass cfgarchiveclass,
  out optional integer cgfarchivespan,
  out optional AttributeObjectDef cfgarchiveattrdef)

Name

Description

cfgobjclass

applies to objects of the defined object class

cfgattrdef

defines the property that should be archived

cfgobjstoarchive

defines the objects that should be archived

cfgobjstomove

defines the objects that should be moved into the archives

cfgtargetobj

defines the object where the cfgobjstomove should be archived

cfgtargetobjattrdef

defines the property of the cfgtargetobj that should store the archives

cfgarchiveclass

defines the object class of the archive; has to be a derived form DefaultArchive

cgfarchivespan

defines if new archives should be created yearly, quarterly or monthly

cfgarchiveattrdef

defines the date property for evaluating the archive for an object (e.g. objcreated, objmodifiedat); has to be a datetime

Additional Information