Wednesday, April 11, 2012

Alfresco Bulk Export Tool

Based one of many demand in my job I have created a new way to export Alfresco documents to a File System that can be imported by  Alfresco Bulk File System Import. This exported data have a pattern described in this  WIKI.

This project, called Alfresco Bulk Export File System Tool, was inside Alfresco AddOns page and can be accessed by this link: http://addons.alfresco.com/addons/bulk-filesystem-export-tool

In this post you find a step by step to install and use the Alfresco Bulk Export File System Tool.

To Install this tool you need to follow steps below:
  1. Download the latest AMP (in this post bulkexport-0.0.3.amp) file containing the tool from here.
  2. Shutdown your Alfresco instance.
  3. Make backup of your original alfresco.war file. On Tomcat environment this is located in ${ALFRESCO_HOME}/tomcat/webapps.
  4. Use the Alfresco Module Management Tool to install the AMP file obtained in step 1.
  5. Restart Alfresco, watching logs carefully for errors.

To use this tool, you just call a simple webscript invoked by this default URL:
http://localhost:8080/alfresco/service/extencions/bulkexport/export?nodeRef={noderef}&base={base}&ignoreExported={ignoreExported?} 
where:
  • {noderef}: Alfresco node reference that you wanna export. Like: workspace://SpacesStore/c494aff5-bedf-40fa-8d0d-2aebcd583579
  • {base}: Base path of your target folder (in the Alfresco Server). Like: /home/gsdenys/export or C:/export.
  • {ignoreExported?}: Not required. when it is true, the system ignore all Alfresco nodes already exported. The default is false.
The process finished when the browser a message "Process finished Successfully". Once showed this message  look up the exported content in the Alfresco server (in the {base} directory).



No comments:

 
Design by Wordpress Theme | Bloggerized by Free Blogger Templates | coupon codes