You can associate a disposition schedule with RecordCategory, RecordFolder, or RecordType objects. A record folder can either inherit the disposition schedule associated with the parent record category, or you can associate a different disposition schedule with the record folder. By default, a record is disposed of according to the disposition schedule associated with the record folder under which it is declared. However, if you want to dispose of a record differently, you should create a record type and specify the appropriate disposition schedule. You can then associate this record type with various records. If different disposition schedules are associated with the parent entity and record type, the disposition schedule associated with the record type will apply to records.
//Assigns a disposition schedule public void allocateDisposalSchedule(DispositionSchedule aoDisposalSchedule) { //Obtains an instance of an existing RecordCategory object RecordCategory loRecCategory = (RecordCategory) loRMStore.getObject(RMType.RM_TYPE_RECORDCATEGORY, "B42CC67A-6E4C-472E-A2D4-1EAC4B70B962"); // Assigns a disposition schedule to the RecordCategory object loRecCategory.allocateDisposalSchedule( aoDisposalSchedule ); }
You can retrieve a DispositionSchedule object in the following ways:
//Retrieves a disposition schedule private DispositionSchedule getDispositionSchedule(RMObjectStore aoRMOS, String asDispositionId) { DispositionSchedule loCustObject = null; loCustObject = (DispositionSchedule) aoRMOS.getObject(RMType.RM_TYPE_DISPOSALSCHEDULE, asDispositionId); return loCustObject; }