#Synopsis
This plugin contributes an operation to read special Nuxeo-formattede CSV files (https://doc.nuxeo.com/display/NXDOC/Nuxeo+CSV) from a given path "folderToCheck" and import Documents contained in "folderToPut".
Example for a REST client:
http://localhost:8080/nuxeo/site/automation/Athento.ImportCSVFiles
{
"params": {
"folderToCheck":"/default-domain/workspaces/CSV/src",
"folderToPut":"/default-domain/workspaces/CSV/dst"
}
}
Some example documents provided in https://github.com/nuxeo/nuxeo-csv/tree/master/src/test/resources
#Installation
You just have to compile the pom.xml using Maven and deploy the plugin in. To do this, you must use the following script:
cd athento-nx-csv-import-scheduler
mvn clean install
cp target/athento-nx-csv-import-scheduler*.jar $NUXEO_HOME/nxserver/plugins
Restart your nuxeo server and enjoy.
#Release notes
- 1.0 - contributes a lifecycle-state "processed" for File documents using transition from "project" to "processed" to avoid duplicate processing.
- 2.0 - changes avoid duplicates policy. Now moves documents from src folder to processing subfolder and, when processed, to processed subfolder.
- 3.0 - waits for every CSV import to complete before moving to the next
#To Do
- [done] Extend automation chain to move processed files to a diferent folder to avoid reprocessing.
- [done] Wait for every thread to finish after starting next import.