cancel
Showing results for 
Search instead for 
Did you mean: 

How can i disable the option: Skip Version Increment?

peter013_
Champ in-the-making
Champ in-the-making

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...?

1 ACCEPTED ANSWER

Anahide_Tchertc
Elite Collaborator
Elite Collaborator

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).

View answer in original post

19 REPLIES 19

Ok for the fix

Uhmm could u specify how u did it?

Hi,

fix is not online yet, update should be done sometime next week

In the extensions.xml generated in studio, extract the name of the component

Oke im srry but this is very helpfull i only dont know where to put it.

You can put your contribution in

after restarting the server i get the message

Download the jar, open it, the name of the component can be found in OSGI-INF\extensions.xml

pibou, you are my super hero

Getting started

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.