Integration with CMIS using Mule ESB


Integration with CMIS using Mule ESB
 1. Overview - The Anypoint Connector for Content Management Interoperability Services (CMIS) provides connectivity to CMIS repositories, such as Alfresco and SharePoint. It enables synchronizing data and automating business processes across applications and systems. Supported operations: - Apply Policy - Check in - Check out - Create Folder - Create File - Create Relationship - Delete - Query - ...
 2. Prerequisites For the CMIS connector to work properly in your Mule application, you need the following: • Access to a CMIS repository • A community edition of Anypoint Studio
 3. Installation To install: • Open Anypoint Studio, and under the Help menu, select Install New Software. • In the Install menu, click Work with, and click the Anypoint Connectors Update Site. • In the table below the Filter field, click the right arrow next to the Community folder, and select the MuleSoft CMIS Connector Mule Studio Extension check box. Click Next. • Review the details of the item you selected, then click Next. • Select I accept the terms of license agreement, then click Finish. • Click Restart Now to complete the installation.
 4. Mule CMIS Connector Step 1: Create a New Mule Project • To configure: • In Anypoint Studio, click File > New > Mule Project. • Specify a Project Name and click Finish.
 5. Mule CMIS Connector Step 2: Configure the Global Element • To use the CMIS connector in your Mule application, you must configure: • A global element for CMIS for use by all the CMIS connectors in your Mule application. For more information • Parameters of each CMIS connector instance in the application.
 6. Mule CMIS Connector (Cont ...) • Click the Global Elements tab at the base of the canvas, then click Create. • In the Choose Global Type menu, use the filter to locate and select CMIS, then click OK. • Configure the parameters according to the table below. • Access the Pooling Profile tab to configure any settings relevant to managing multiple connections using a connection pool. • Access the Reconnection tab to configure any settings relevant to reconnection strategies that Mule should execute if it loses its connection to CMIS. • Click OK to save the global connector configurations. • Return to the Message Flow tab in Studio.
 7. Mule flow Drag an HTTP endpoint into a new flow, and configure with – – Host – Port – Path 
8. Mule flow (Cont ..) • Drag the CMIS connector onto the canvas, then select it to open the properties editor console. • Click the + sign next to the Connector Configuration field to add a new global connector configuration
 9. Mule flow (Cont ..) • Configure the CMIS global element.
 10. Mule flow (Cont ..) • In the properties editor of the CMIS connector, use the Get or create folder by path operation to create a folder in the CMIS repository: • Add a Groovy component to the flow and add the following script text to process the message payload
 11. Mule flow (Cont ..) • Add another CMIS connector after the Groovy transformer, and use the Create document by path from content operation to create a document with the content in the payload.
 12. Mule flow (Cont ..) • Add a Object to Json transformer onto the flow to capture the response from the CMIS connector and display it as a HTTP response.
 13. Running Mule Project • Run the project as a Mule Application (right-click project name, then select Run As > Mule Application). • Navigate to http://localhost:8081/cmis to upload a file to your CMIS repository. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Started app ' CMIS_CreateFolder' + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ • Open an Internet browser and visit http://localhost:8081/cmis • The operation will create a folder in the CMIS System

Comments

Post a Comment

Popular posts from this blog

Features of Mule SAP Connector

Install Java Cryptography Extension (JCE) unlimited strength jurisdiction policy

Integration with Sercice-Now using Mule ESB