10-06-2012 03:08 PM
I am trying to make it impossible to skip the version update. So that every time when a document has been modified, it wil create atleast a minor of major version increment...?
10-08-2012 07:20 AM
Hi,
Here's a typical definition of a contribution to the versioning service that controls available options:
<extension target="org.nuxeo.ecm.core.versioning.VersioningService" point="versioningRules">
<versioningRule typeName="MyDoc">
<initialState major="0" minor="0"/>
<options lifeCycleState="*">
<none default="true"/>
<minor/>
<major/>
</options>
</versioningRule>
</extension>
You can define your own for your document type, and remove the "none" option if you'd like to force version increment.
This cannot be used in an XML extension in Studio waiting for https://jira.nuxeo.com/browse/NXS-1259 issue to be fixed, but as a workaround, you can put this contribution in a another jar and make it require the Studio bundle (to make sure it's deployed afterwards).
10-10-2012 07:43 AM
Ok for the fix
10-12-2012 11:35 AM
Uhmm could u specify how u did it?
10-19-2012 10:23 AM
Hi,
10-19-2012 10:31 AM
fix is not online yet, update should be done sometime next week
10-19-2012 10:36 AM
In the extensions.xml generated in studio, extract the name of the component
10-19-2012 04:08 PM
Oke im srry but this is very helpfull i only dont know where to put it.
10-22-2012 03:12 AM
You can put your contribution in
10-26-2012 07:32 AM
after restarting the server i get the message
10-26-2012 11:24 AM
Download the jar, open it, the name of the component can be found in OSGI-INF\extensions.xml
10-27-2012 11:45 AM
pibou, you are my super hero
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.