Ennov InSight provides the ability to define auto-created leaf attributes as well as assembly document attributes that are taken from a source document in the
propertyMappings.xml file.
By defining the Output File value, irrespective of whether a file with or without an extension is assigned, the extension for the native file remains unchanged. The extension of an Output File can be removed if the value of the attribute
Use Native File is set to
No. The same applies when a file is dragged within an assembly or imported from another assembly that results in leaf creation. Configuration can be made in the
propertyMappings.xml file to enable removing of an extension from any leaf field. If such a configuration is applied and a leaf is updated, it is necessary to ensure the intended attribute value is taken. If the leaf attributes defined in the
propertyMappings.xml file fail to retrieve due to configuration discrepancies, the corresponding auto-created leaf attributes fields show blank values.
To define leaf attributes for an auto-created leaf:
-
Go to the
<installation drive>:\InsightManager\server\all\conf\insight folder and open the
propertyMappings.xml file in Notepad.
-
Locate the code section for the Document Management System or the file system that you use as repository for documents. Example of the code section for the file system:
<!--These mappings indicate what attributes will be populated in an Assembly Document when a File System document is assigned.WARNING: This is the default property mapping. It must not be removed.Working bean! --/>
<bean id="file.file_object-assembly.leaf" parent="propertyMapper">
<property name="retriever" ref="dmsContentRetriever" />
<property name="populator" ref="metaObjectPopulator" />
<property name="mappings">
-
To exclude the file extension for non-native files for auto-created leafs, locate the following section:
<bean parent="simpleMapping">
<property name="source" value="name" />
<property name="target" value="outputFileName" />
</property>
</bean>
-
Add the following code lines after the code line
<property name="target" value="outputFileName" />:
<property name="converter">
<bean parent="removeExtensionConverter"/>
After adding the code lines, the code block will look like the following:
<bean parent="simpleMapping"/>
<property name="source" value="name" />
<property name="target" value="outputFileName" />
<property name="converter">
<bean parent="removeExtensionConverter"/>
</property>
</bean>
-
Save and close the
propertyMappings.xml file.
-
Restart the
Ennov InSight service.