<?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 Get Previous Version in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/get-previous-version/m-p/294477#M247607</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;At the moment i'm trying to make a review workflow that on rejection will rollback (revert) the package to its previous version. This will be triggered by a rule on update.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know how to revert to a specified version with&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.revert(history, major , version);&amp;nbsp; aka node.revert("Workflow Rejection Rollback", false, 1.1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I don't how I can get the previous version number so I can replace the 1.1 above with a var containing the previous version.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this possible with javascript inside the wf definition?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Oct 2013 00:32:26 GMT</pubDate>
    <dc:creator>tomoconnell</dc:creator>
    <dc:date>2013-10-07T00:32:26Z</dc:date>
    <item>
      <title>Get Previous Version</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-previous-version/m-p/294477#M247607</link>
      <description>At the moment i'm trying to make a review workflow that on rejection will rollback (revert) the package to its previous version. This will be triggered by a rule on update.I know how to revert to a specified version with.revert(history, major , version);&amp;nbsp; aka node.revert("Workflow Rejection Rollback</description>
      <pubDate>Mon, 07 Oct 2013 00:32:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-previous-version/m-p/294477#M247607</guid>
      <dc:creator>tomoconnell</dc:creator>
      <dc:date>2013-10-07T00:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Get Previous Version</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-previous-version/m-p/294478#M247608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Use ScriptNode 's versionHistory(ScriptVersion[] versionHistory) property,It lists all versions of the document in descending version created date order. Then you can get previous version of a document&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 02:25:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-previous-version/m-p/294478#M247608</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2013-10-07T02:25:08Z</dc:date>
    </item>
  </channel>
</rss>

