Currently there is no documents / reference for creating Records using Alfresco.But We can create,query records in RMS using CMIS also.But here some points to be considered.1. Use the location of Record Management Site's document library.The location will be something like this. ( /Sites/rm/documentLibrary/<File Plan> )2. While writing record, populate the properties as below<blockcode> properties.put(PropertyIds.OBJECT_TYPE_ID, "cmis:document,P:rmc:rmarecordCustomProperties," + "P:dod
dfRecord,P:cm:taggable,P:rma:record,P:rma:commonRecordDetails," + "P:rma:recordSearch,P:rma:filePlanComponent,P:rma:recordComponentIdentifier,P:cm:titled"); properties.put("cm:title", "Sample Record"); properties.put("cm:description", "record description"); properties.put("rma
ublicationDate",new GregorianCalendar(2015, 02, 28)); properties.put("rma
riginator","acme"); properties.put("rma
riginatingOrganization","ABC organisation");//PDF record specific metadata properties.put("dod
roducingApplicationVersion","1.0"); properties.put("dod
roducingApplication","ABC application"); properties.put("dod:creatingApplication","ABC application"); properties.put("dod
dfVersion","1.0");//Custom Meta data properties.put("rmc
ocumentType","Transaction Record");</blockcode>What we did here is , we create a document and apply the RMS specific aspects and their properties3.Everything else is similar to writing Documents.
document= targetFolder.createDocument(properties, contentStream, VersioningState.MAJOR);
Hope it helps.