cancel
Showing results for 
Search instead for 
Did you mean: 

Ephesoft metadata export

juniorbl
Champ in-the-making
Champ in-the-making
Hello,

I'm trying to integrate Alfresco and Ephesoft and it's working, I'm able to export a document to Alfresco but the metadata from Ephesoft doesn't appear on the document inside Alfresco. I'm following this example http://tpeelen.wordpress.com/2010/12/23/configuring-ephesoft-and-alfresco-for-cmis-integration but I'm missing something. These are my configurations files:

ephesoftModel.xml
<?xml version="1.0" encoding="UTF-8"?>
<!– Custom Model –>
<!– Note: This model is pre-configured to load at startup of the Repository. So, all custom –>
<!–       types and aspects added here will automatically be registered –>

<model name="ephesoft:demomodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">

<imports>
   <!– Import Alfresco Dictionary Definitions –>
   <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
   <!– Import Alfresco Content Domain Model Definitions –>
   <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
</imports>

<!– Introduction of new namespaces defined by this model –>
<!– NOTE: The following namespace custom.model should be changed to reflect your own namespace –>
<namespaces>
   <namespace uri="http://com.ephesoft.demo/model/content/1.0" prefix="ephesoft"/></namespaces>
   <constraints />
   <types>
      <type name="ephesoft:document">
         <title>ephesoft_scan</title>
         <parent>cm:content</parent>
         <properties>
            <property name="ephesoft:invoiceTotal">
               <title>Invoice Total</title>
               <type>d:int</type>
            </property>
         </properties>
      </type>
   </types>
</model>

And custom-model-context.xml:

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>

<!– Registration of new models –>
<beans>
   <bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
      <property name="models">
         <list>
            <value>alfresco/extension/ephesoftModel.xml</value>
         </list>
      </property>
   </bean>
</beans>

Like I said, I can see the document but I cannot see the "invoiceTotal" metadata, is something wrong?

Thank you in advance.
8 REPLIES 8

pmyers
Champ in-the-making
Champ in-the-making
Hello there,
Did you do your CMIS mapping  in the DLF-Attribute-mapping.properties file?  The file should be located in the batch class configuration in the cmis-plugin-mapping folder (e.g. C:\Ephesoft\SharedFolders\BCB\cmis-plugin-mapping).  Here you will map the Ephesoft content model to the Alfresco content model.  I am not sure what your Ephesoft document types are but will give an example per your Alfresco content model.


Invoice=D:ephesoft:document
Invoice.InvoiceTotal=ephesoft:invoiceTotal

The first mapping (with the prefix on the right hand of "D") is the document type mapping where "Invoice" is the Ephesoft document type and "ephesoft:document" is your Alfresco document type.  The second mapping is the attribute mapping of "InvoiceTotal" field in Ephesoft to the "ephesoft:invoiceTotal" property in Alfresco.


Let me know if that works for you.

Pat Myers
Zia Consulting, Inc.

juniorbl
Champ in-the-making
Champ in-the-making
Hi,

Yes, I did the mapping just like that blog post. I tried to original way and then I changed the "D:ephesoft:document" to "cmis:document" but still nothing. Here's my mapping file:

Application-Checklist=D:ephesoft:document
Application-Checklist.InvoiceTotal=ephesoft:invoiceTotal
Application-Checklist.State=ephesoft:state
Application-Checklist.City=ephesoft:city
Workers-Comp-02=D:ephesoft:document
Workers-Comp-02.InvoiceTotal=ephesoft:invoiceTotal
Workers-Comp-02.State=ephesoft:state
Workers-Comp-02.City=ephesoft:city
US-invoice-Data=D:ephesoft:document
US-invoice-Data.InvoiceTotal=ephesoft:invoiceTotal
US-invoice-Data.State=ephesoft:state
US-invoice-Data.City=ephesoft:city
Invoice=D:ephesoft:document
Invoice.InvoiceTotal=ephesoft:invoiceTotal

I removed the "partNumber" and "invoiceDate" to keep it simple and tried new types like you said. Do you see something wrong?

Thank you.

barbara
Champ in-the-making
Champ in-the-making
Hi,

I am having the exactly same issue. Have you solved this?

barbara
Champ in-the-making
Champ in-the-making
After switching to another Alfresco version everything works fine for me. It was probably related to this issue.

juniorbl
Champ in-the-making
Champ in-the-making
Hello,

My problem was a lower case "i", in the mapping file was "US-invoice-Data" and in "Document Types" was "US-Invoice-Data", is just a matter of change one of them.

Hope this helps.

opendev
Champ in-the-making
Champ in-the-making
Hello,

My problem was a lower case "i", in the mapping file was "US-invoice-Data" and in "Document Types" was "US-Invoice-Data", is just a matter of change one of them.

Hope this helps.

hi, the configuration of ephesoft/alfresco it's done with the ephesoft community or entreprise ?
help please.

juniorbl
Champ in-the-making
Champ in-the-making
Hi,

enterprise but according to this post http://tpeelen.wordpress.com/2010/12/23/configuring-ephesoft-and-alfresco-for-cmis-integration the community version is capable of doing the same thing.

Regards.

kikushima
Champ in-the-making
Champ in-the-making
Hi Im a complete noob here.

Im using Alfresco Community 4.2 on an Ubuntu Server VM and Im trying to integrate ephesoft community edition on another windows 7 VM for document scanning. I have followed the link that you all mention http://tpeelen.wordpress.com/2010/12/23/configuring-ephesoft-and-alfresco-for-cmis-integration/

I have created my ephesoftModel.xml.sample file and I edit the custom-model-context.xml.sample but I cannot find "D:ephesoft:document" on the CMIS browser….

By the way, what are the xml.sample files??? what is the ".sample"? I have also try saving the files without the ".sample" and I cannot acces the alfresco share with the admin username and password.

Please help!