09-17-2013 07:03 PM
Platform: Nuxeo 5.7.2 Fasttrack OS: Ubuntu 13.04
I have created an xml file in my <nuxeo_home>/nxserver/conf folder called defaultVersioningOverride.xml that has the contents of:
<?xml version="1.0"?>
<extension target="org.nuxeo.ecm.core.versioning.VersioningService" point="versioningRules">
<versioningRule typeName="QMSDocument">
<initialState major="0" minor="0"/>
<options lifeCycleState="*">
<minor default="true"/>
<major/>
</options>
</versioningRule>
</extension>
I have a document type QMSDocument defined in and imported from Studio.
The problem is the Nuxeo Platform is ignoring my versioning override xml file. Did I miss something, or is this something that will have to be repackaged in a jar?
Please note that I am new to Nuxeo and do not have any experience with Java or xml programming. Thank you.
09-18-2013 09:35 AM
The filename should end with "-config.xml" to be taken into account (cf this documentation).
09-18-2013 09:35 AM
The filename should end with "-config.xml" to be taken into account (cf this documentation).
09-18-2013 12:26 PM
Okay, when I modify the file name, I start receiving these errors
09-18-2013 12:33 PM
Well, I suppose this means your file is used now, that's a positive point!
09-18-2013 12:51 PM
Thank you for the direction. Hopefully someone can look at the XML code and tell me what is incorrect.
09-19-2013 02:52 PM
I finally figured this issue out. In Studio in Advanced Settings -> XML Extensions I created a new extension called defaultVersioningOverride and added this:
<extension point="versioningRules" target="org.nuxeo.ecm.core.versioning.VersioningService"> <versioningRule typeName="QMSDocument" enabled="true"> <!-- <initialState major="0" minor="0"/> --> <options lifeCycleState="*"> <minor default="true"/> <major/> </options> </versioningRule> </extension>
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.