<?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: change the version of a node in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/change-the-version-of-a-node/m-p/263902#M217032</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;do I understand correctly that you transform the office document into a PDF in a &lt;/SPAN&gt;&lt;STRONG&gt;different node&lt;/STRONG&gt;&lt;SPAN&gt;, so that you end up with two documents that should have the same version but content in different formats?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The thing here is that you cannot directly influence the version number of a version create via "createVersion" from the calling code. Depending on the provided version type ("major" / "minor") Alfresco internally computes the next version number. So in order to reach a version of 3.2, you would need to call "createVersion" 4 times - 2 times with "major" to get from 1.0 to 3.0, and 2 as "minor" more times to get to 3.2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;On the other hand, it is possible to influence the way Alfresco counts versions by providing a version labeling policy. Peter Monks once provided &lt;/SPAN&gt;&lt;A href="http://blogs.alfresco.com/wp/pmonks/2009/11/03/version-baselining/" rel="nofollow noopener noreferrer"&gt;an account of his forray into that matter&lt;/A&gt;&lt;SPAN&gt;, which you might find useful since it dealt exactly with your requirement of being able to pre-define the label of the first version of a new document (the transformed PDF).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jul 2012 21:46:18 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2012-07-10T21:46:18Z</dc:date>
    <item>
      <title>change the version of a node</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/change-the-version-of-a-node/m-p/263901#M217031</link>
      <description>helloIt is possible to change the version of a node using the library function, without a new version is created?For example:I have a office document with version 3.2 and transfor this document to a pdf.After that I want to change the version of the pdf to the version 3.2.I try:versionService.ensure</description>
      <pubDate>Mon, 09 Jul 2012 14:37:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/change-the-version-of-a-node/m-p/263901#M217031</guid>
      <dc:creator>raaftjon</dc:creator>
      <dc:date>2012-07-09T14:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: change the version of a node</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/change-the-version-of-a-node/m-p/263902#M217032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;do I understand correctly that you transform the office document into a PDF in a &lt;/SPAN&gt;&lt;STRONG&gt;different node&lt;/STRONG&gt;&lt;SPAN&gt;, so that you end up with two documents that should have the same version but content in different formats?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The thing here is that you cannot directly influence the version number of a version create via "createVersion" from the calling code. Depending on the provided version type ("major" / "minor") Alfresco internally computes the next version number. So in order to reach a version of 3.2, you would need to call "createVersion" 4 times - 2 times with "major" to get from 1.0 to 3.0, and 2 as "minor" more times to get to 3.2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;On the other hand, it is possible to influence the way Alfresco counts versions by providing a version labeling policy. Peter Monks once provided &lt;/SPAN&gt;&lt;A href="http://blogs.alfresco.com/wp/pmonks/2009/11/03/version-baselining/" rel="nofollow noopener noreferrer"&gt;an account of his forray into that matter&lt;/A&gt;&lt;SPAN&gt;, which you might find useful since it dealt exactly with your requirement of being able to pre-define the label of the first version of a new document (the transformed PDF).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2012 21:46:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/change-the-version-of-a-node/m-p/263902#M217032</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2012-07-10T21:46:18Z</dc:date>
    </item>
  </channel>
</rss>

