cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco RM CMIS support?

dynamolalit
Champ on-the-rise
Champ on-the-rise
Hi,

I want to know if Alfresco records management supports CMIS such as querying , creating records etc. As per <a> http://forums.alfresco.com/forum/end-user-discussions/records-management/declaring-records-using-cmi... </a>, RM does not support CMIS currently?

Can anyone confirm?

Regards.
1 REPLY 1

sathiyaseelan
Champ in-the-making
Champ in-the-making
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:dodSmiley TonguedfRecord,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("rmaSmiley TongueublicationDate",new GregorianCalendar(2015, 02, 28));
      properties.put("rmaSmiley Surprisedriginator","acme");
      properties.put("rmaSmiley SurprisedriginatingOrganization","ABC organisation");

//PDF record specific metadata
      properties.put("dodSmiley TongueroducingApplicationVersion","1.0");
      properties.put("dodSmiley TongueroducingApplication","ABC application");
      properties.put("dod:creatingApplication","ABC application");
      properties.put("dodSmiley TonguedfVersion","1.0");
//Custom Meta data
      properties.put("rmcSmiley Very HappyocumentType","Transaction Record");


</blockcode>

What we did here is , we create a document and apply the RMS specific aspects and their properties

3.Everything else is similar to writing Documents.


document= targetFolder.createDocument(properties, contentStream, VersioningState.MAJOR);



Hope it helps.