Instantly share code, notes, and snippets.

What would you like to do?
Create an instance of a custom type in Alfresco that extends sys:base using cmis:item support in CMIS 1.1
clientName = "Some Client"
folder = session.getObjectByPath('/test/testfolder1')
props = new HashMap<String, Object>()
props["cmis:objectTypeId"] = "I:sc:client"
props["sc:clientId"] = "56789"
props["sc:clientName"] = clientName
props["cmis:name"] = clientName
clientObj = folder.createItem(props)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment