Enterprise Integration Zone is brought to you in partnership with:

Ross founded the open source Mule® project in 2003. Frustrated by integration "donkey work," he set out to create a new platform that emphasized ease of development and re-use of components. He started the Mule project to bring a modern approach, one of assembly, rather than repetitive coding, to developers worldwide. He is now the Founder and CTO of Mulesoft. Ross is a DZone MVB and is not an employee of DZone and has posted 94 posts at DZone. You can read more from them at their website. View Full User Profile

Prepare Your Documents: CMIS Connector Is Here!

05.06.2013
| 3096 views |
  • submit to reddit
Originally posted by Andres Bressi

CMIS is an open standard that allows different systems to inter-operate over the Internet. Specifically, CMIS defines an abstraction layer for controlling diverse document management systems and repositories using web protocols.

Getting the CMIS Connector

It’s really easy to start using this connector thanks to Mule Studio update site. To install it:

  • Go to the menu Help -> Install new software
  • Enter: http://repository.mulesoft.org/connectors/releases
  • Select the CMIS Cloud Connector available in the Community group

Once you have followed the process and downloaded the Studio plugin the component will be visible on the Cloud Connectors toolbar.

If you’re not using Mule Studio you can use it with Apache Maven using this guide.

Ok, now lets integrate

What operations does the connector provide you? Let’s have a quick look at some of them. By the way, I’m going to give you the XML snippets rather than the graphical view so that you can just paste them into the XML view of your flow (XML view is available on the bottom tabs of a flow).

First create a new project and you’ll be presented with a blank flow.

Create a Document

Imagine you want to create a document in a CMIS repository. No problem, you can do it with the following example:

A file name, a destination repository folder path, a mime type, an object type, a versioning state and the content ref. Your file will be available in the selected CMIS repository.

Create a Folder

OF course, creating a folder with this connector is pretty straightforward:

The Rest

The other available operations are:

  • Query
  • Create Relationship
  • And much more

To Learn More

You can access the source code on our GitHub repository where you can also find the documentation pages and for those who want to go further there is a bonus track:

Hope you enjoy this cloud connector and please don’t hesitate to leave your comments and questions. See you next time!

Published at DZone with permission of Ross Mason, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)