<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to increment only minor version after Document.RestoreVersion in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-increment-only-minor-version-after-document/m-p/314556#M1557</link>
    <description>&lt;P&gt;Hello,
if you are using Java Client, did you try to update the version of the document by using the following?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;document = nuxeoClient.operation("Document.CreateVersion").param("increment", "MINOR").input(document).execute();
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In this case, with "MINOR", the version 1.0 will generate the version 1.1. You can also change "MINOR" to "MAYOR" in order to increment from 1.0 to 2.0.&lt;/P&gt;
&lt;P&gt;Info about the &lt;EM&gt;Document.CreateVersion&lt;/EM&gt; operation: &lt;A href="http://explorer.nuxeo.com/nuxeo/site/distribution/Nuxeo%20DM-8.2/viewOperation/Document.CreateVersion"&gt;http://explorer.nuxeo.com/nuxeo/site/distribution/Nuxeo%20DM-8.2/viewOperation/Document.CreateVersion&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Hope it helps!&lt;/P&gt;</description>
    <pubDate>Wed, 07 Aug 2019 06:54:29 GMT</pubDate>
    <dc:creator>Rodri_</dc:creator>
    <dc:date>2019-08-07T06:54:29Z</dc:date>
    <item>
      <title>How to increment only minor version after Document.RestoreVersion</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-increment-only-minor-version-after-document/m-p/314555#M1556</link>
      <description>&lt;P&gt;Hello. After invoke operation Document.RestoreVersion e.g. major version 2 -&amp;gt; major version 1, i need to update document with major version 1 and increment minor version of major version 1, but nuxeo java client return major version 2 after update major version 1. How can i fix this?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2019 05:07:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-increment-only-minor-version-after-document/m-p/314555#M1556</guid>
      <dc:creator>_______________</dc:creator>
      <dc:date>2019-08-02T05:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to increment only minor version after Document.RestoreVersion</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-increment-only-minor-version-after-document/m-p/314556#M1557</link>
      <description>&lt;P&gt;Hello,
if you are using Java Client, did you try to update the version of the document by using the following?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;document = nuxeoClient.operation("Document.CreateVersion").param("increment", "MINOR").input(document).execute();
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In this case, with "MINOR", the version 1.0 will generate the version 1.1. You can also change "MINOR" to "MAYOR" in order to increment from 1.0 to 2.0.&lt;/P&gt;
&lt;P&gt;Info about the &lt;EM&gt;Document.CreateVersion&lt;/EM&gt; operation: &lt;A href="http://explorer.nuxeo.com/nuxeo/site/distribution/Nuxeo%20DM-8.2/viewOperation/Document.CreateVersion"&gt;http://explorer.nuxeo.com/nuxeo/site/distribution/Nuxeo%20DM-8.2/viewOperation/Document.CreateVersion&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Hope it helps!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 06:54:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-increment-only-minor-version-after-document/m-p/314556#M1557</guid>
      <dc:creator>Rodri_</dc:creator>
      <dc:date>2019-08-07T06:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to increment only minor version after Document.RestoreVersion</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-increment-only-minor-version-after-document/m-p/314557#M1558</link>
      <description>&lt;P&gt;Hello Rodri. Thank you, but i mean some different things.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 08:17:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-increment-only-minor-version-after-document/m-p/314557#M1558</guid>
      <dc:creator>_______________</dc:creator>
      <dc:date>2019-08-07T08:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to increment only minor version after Document.RestoreVersion</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-increment-only-minor-version-after-document/m-p/314558#M1559</link>
      <description>&lt;P&gt;Well. You can play with "checkout" and "createVersion" parameters of "Document.RestoreVersion" operation. However, I think that the behavior you are expecting is not possible only with those operations. If you want to restore a document from a version, then you can generate a new version with the restored version. For example, if the document has the version 2.4, you can restore the 1.1 version but creating a new version (2.5). So 2.5 = 1.1. In other case, you might have two 1.2 versions and this is not possible.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 14:05:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-increment-only-minor-version-after-document/m-p/314558#M1559</guid>
      <dc:creator>Rodri_</dc:creator>
      <dc:date>2019-08-07T14:05:47Z</dc:date>
    </item>
  </channel>
</rss>

