<?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 disable versioning for one of my custom action in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-disable-versioning-for-one-of-my-custom-action/m-p/295981#M249111</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to disable the behavior associated with version and now after&lt;/P&gt;&lt;P&gt;check-in the file version does not increase but in one scenario described&lt;/P&gt;&lt;P&gt;below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my custom OCR action I am changing the extension of file from&lt;/P&gt;&lt;P&gt;.tiff/.png/.jpg/.jpeg to .pdf atfer ocr'ing and then check-in the file but&lt;/P&gt;&lt;P&gt;in this case I can see a minor version increase though I have disabled all&lt;/P&gt;&lt;P&gt;the behavior. Can you please let me know why it is happening and how can I&lt;/P&gt;&lt;P&gt;disable it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hiten Rastogi&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sr. Software Engineer&lt;/P&gt;&lt;P&gt;Mobile:   +91 9899586608&lt;/P&gt;&lt;P&gt;Email:     hiten.rastogi@eisenvault.com &amp;lt;vipul.swarup@eisenvault.com&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On 15 December 2016 at 12:18, Hiten Rastogi &amp;lt;hiten.rastogi@eisenvault.com&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Dec 2016 10:46:50 GMT</pubDate>
    <dc:creator>hiten_rastogi1</dc:creator>
    <dc:date>2016-12-15T10:46:50Z</dc:date>
    <item>
      <title>How to disable versioning for one of my custom action</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-disable-versioning-for-one-of-my-custom-action/m-p/295974#M249104</link>
      <description>Hi,I am creating a custom action where I am checking in a file after some modification. I would like to know how I can disable the versioning when I check-in the file.So far, I have done the below.In my code, I am passing null in the check-in function of the CheckOutCheckInService(checkOutCheckInSer</description>
      <pubDate>Wed, 14 Dec 2016 06:33:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-disable-versioning-for-one-of-my-custom-action/m-p/295974#M249104</guid>
      <dc:creator>hiten_rastogi1</dc:creator>
      <dc:date>2016-12-14T06:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable versioning for one of my custom action</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-disable-versioning-for-one-of-my-custom-action/m-p/295975#M249105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If &amp;nbsp;versioning is enabled &amp;nbsp;on a node,when you perform a check in， &amp;nbsp;a new version is always created, you can't disable it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 08:24:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-disable-versioning-for-one-of-my-custom-action/m-p/295975#M249105</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2016-12-14T08:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable versioning for one of my custom action</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-disable-versioning-for-one-of-my-custom-action/m-p/295976#M249106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kayne,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok, so is there a way I can preserve the version history and after removing&lt;/P&gt;&lt;P&gt;versionable aspect and checking-in the file I can just restore all the&lt;/P&gt;&lt;P&gt;version history for that file ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hiten Rastogi&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sr. Software Engineer&lt;/P&gt;&lt;P&gt;Mobile:   +91 9899586608&lt;/P&gt;&lt;P&gt;Email:     hiten.rastogi@eisenvault.com &amp;lt;vipul.swarup@eisenvault.com&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 08:50:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-disable-versioning-for-one-of-my-custom-action/m-p/295976#M249106</guid>
      <dc:creator>hiten_rastogi1</dc:creator>
      <dc:date>2016-12-14T08:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable versioning for one of my custom action</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-disable-versioning-for-one-of-my-custom-action/m-p/295977#M249107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A minor correction...&lt;/P&gt;&lt;P&gt;The CheckInCheckOutService always performs versioning when you use the checkIn operation. Why would you use it anyway if you you did not want to create a new version?&lt;/P&gt;&lt;P&gt;But versioning in terms of the auto-version feature can indeed be disabled / ignored within a single action / transaction. That is what the BehaviourFilter interface allows you to do. With it you can disable policies / behaviours that automatically react to changes on nodes with specific types or aspects. Since versioning is dependant on the versionable aspect, you can disable behaviours for that aspect and have effectively disabled the auto-versioning behaviour.&lt;/P&gt;&lt;P&gt;I guess disabling the behaviour would also result in the version history not be removed when you remove the aspect itself, but I would not recommend it and it is not necessary for your use case as far as I can see.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 11:19:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-disable-versioning-for-one-of-my-custom-action/m-p/295977#M249107</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2016-12-14T11:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable versioning for one of my custom action</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-disable-versioning-for-one-of-my-custom-action/m-p/295978#M249108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many Thanks Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To clarify on above, my action is related to OCR in which the working node&lt;/P&gt;&lt;P&gt;in checked out and after OCR that working node is checked in and in this&lt;/P&gt;&lt;P&gt;action I am using CheckOutCheckInService, which as you said always perform&lt;/P&gt;&lt;P&gt;the versioning. Do we have another way to handle check-in then please let&lt;/P&gt;&lt;P&gt;me know as my knowledge is limited to above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now for disabling Behavior Filter, if my understanding is correct from what&lt;/P&gt;&lt;P&gt;you have said above I just need to disable the behavior that is invoked on&lt;/P&gt;&lt;P&gt;the versionable aspect in my custom action call and that will do the job&lt;/P&gt;&lt;P&gt;which will also help in retaining the previous versions history that is&lt;/P&gt;&lt;P&gt;getting lost in my current setup in which I am removing the aspect&lt;/P&gt;&lt;P&gt;versionable and then checking in the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hiten Rastogi&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sr. Software Engineer&lt;/P&gt;&lt;P&gt;Mobile:   +91 9899586608&lt;/P&gt;&lt;P&gt;Email:     hiten.rastogi@eisenvault.com &amp;lt;vipul.swarup@eisenvault.com&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 11:41:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-disable-versioning-for-one-of-my-custom-action/m-p/295978#M249108</guid>
      <dc:creator>hiten_rastogi1</dc:creator>
      <dc:date>2016-12-14T11:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable versioning for one of my custom action</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-disable-versioning-for-one-of-my-custom-action/m-p/295979#M249109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suggest you do not check out the node for OCR in the first place. If you use checkout just so that no one else modifieds the node, why not just lock it instead?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 11:55:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-disable-versioning-for-one-of-my-custom-action/m-p/295979#M249109</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2016-12-14T11:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable versioning for one of my custom action</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-disable-versioning-for-one-of-my-custom-action/m-p/295980#M249110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are doing OCR using tesseract, so we have to check-out the file to run&lt;/P&gt;&lt;P&gt;tesseract command on the server therefore I believe locking will not work.&lt;/P&gt;&lt;P&gt;I will concentrate now to disable the behavior related to versioning aspect&lt;/P&gt;&lt;P&gt;in my custom action and see if that works for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hiten Rastogi&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sr. Software Engineer&lt;/P&gt;&lt;P&gt;Mobile:   +91 9899586608&lt;/P&gt;&lt;P&gt;Email:     hiten.rastogi@eisenvault.com &amp;lt;vipul.swarup@eisenvault.com&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2016 06:48:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-disable-versioning-for-one-of-my-custom-action/m-p/295980#M249110</guid>
      <dc:creator>hiten_rastogi1</dc:creator>
      <dc:date>2016-12-15T06:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable versioning for one of my custom action</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-disable-versioning-for-one-of-my-custom-action/m-p/295981#M249111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to disable the behavior associated with version and now after&lt;/P&gt;&lt;P&gt;check-in the file version does not increase but in one scenario described&lt;/P&gt;&lt;P&gt;below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my custom OCR action I am changing the extension of file from&lt;/P&gt;&lt;P&gt;.tiff/.png/.jpg/.jpeg to .pdf atfer ocr'ing and then check-in the file but&lt;/P&gt;&lt;P&gt;in this case I can see a minor version increase though I have disabled all&lt;/P&gt;&lt;P&gt;the behavior. Can you please let me know why it is happening and how can I&lt;/P&gt;&lt;P&gt;disable it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hiten Rastogi&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sr. Software Engineer&lt;/P&gt;&lt;P&gt;Mobile:   +91 9899586608&lt;/P&gt;&lt;P&gt;Email:     hiten.rastogi@eisenvault.com &amp;lt;vipul.swarup@eisenvault.com&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On 15 December 2016 at 12:18, Hiten Rastogi &amp;lt;hiten.rastogi@eisenvault.com&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2016 10:46:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-disable-versioning-for-one-of-my-custom-action/m-p/295981#M249111</guid>
      <dc:creator>hiten_rastogi1</dc:creator>
      <dc:date>2016-12-15T10:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable versioning for one of my custom action</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-disable-versioning-for-one-of-my-custom-action/m-p/295982#M249112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As long as you use check-out / check-in you will always see a version increase. I think we have established this behaviour cannot be suppressed / disabled a couple of times now. If you absolutely do not want a version increase, stop using check-out / check-in. There is - technically speaking - no reason to use that while OCR is being performed (I know because I implemented similar functionality in the past and never needed that). If your business requirements for the OCR action require use of check-out / check-in then you will have to accept there is a version increase.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2016 11:51:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-disable-versioning-for-one-of-my-custom-action/m-p/295982#M249112</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2016-12-15T11:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable versioning for one of my custom action</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-disable-versioning-for-one-of-my-custom-action/m-p/295983#M249113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can't you simply use the ContentService to get the access to the node's content?&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://dev.alfresco.com/resource/AlfrescoOne/5.0/PublicAPI/org/alfresco/service/cmr/repository/ContentService.html" title="http://dev.alfresco.com/resource/AlfrescoOne/5.0/PublicAPI/org/alfresco/service/cmr/repository/ContentService.html" rel="nofollow noopener noreferrer"&gt;ContentService (Alfresco 5.0.3 Public API)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe you will be able to &lt;A href="http://dev.alfresco.com/resource/AlfrescoOne/5.0/PublicAPI/org/alfresco/service/cmr/repository/ContentService.html#getReader(org.alfresco.service.cmr.repository.NodeRef,%20org.alfresco.service.namespace.QName)" rel="nofollow noopener noreferrer"&gt;read the content&lt;/A&gt; and then &lt;A href="http://dev.alfresco.com/resource/AlfrescoOne/5.0/PublicAPI/org/alfresco/service/cmr/repository/ContentService.html#getWriter(org.alfresco.service.cmr.repository.NodeRef,%20org.alfresco.service.namespace.QName,%20boolean)" rel="nofollow noopener noreferrer"&gt;write the content&lt;/A&gt; back by using it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2016 17:09:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-disable-versioning-for-one-of-my-custom-action/m-p/295983#M249113</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2016-12-29T17:09:14Z</dc:date>
    </item>
  </channel>
</rss>

