use many types in nuxeo-scan-importer

I'm using nuxeo-scan-importer to import documents using XML files, i've tried it with one type, now i want to be able map many type of document but i don't know how to indicates that those XML files correspond to this type of document. Any suggestions ? I’ve attached my scan-importer-config.xml file.

0 votes

1 answers

1003 views

ANSWER



Hello ITShine !

In your configuration file, you have those lines:

<targetLeafType>plan</targetLeafType>
<!--
  Or a dynamic one by defining a class that implements the DocumentTypeMapper interface
        <targetLeafTypeMapper>org.nuxeo.platform.scanimporter.tests.SampleMapper</targetLeafTypeMapper>

-->

You chose to use a static value for the document/leaf type (plan) with the targetLeafType attribute. But you could have chosen a dynamic value with the targetLeafTypeMapper attribute: in this case, as indicated in the above comment, you have to specify a class that implements the DocumentTypeMapper interface => that's what you need to do to “use many types” with the Scan importer.

Regards,

1 votes



It's working now, thank you
07/29/2015