<?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: onContentRead policy failed to execute. in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/oncontentread-policy-failed-to-execute/m-p/39961#M16773</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are trying to write data in a read-only transaction - of course this will fail. In this use case, you will have to create a custom / nested read-write transaction using the retrying transaction handler (if the enclosing transaction is read-only). Only within the new transaction (or after you have verified the current transaction is read-write) are you safe to&amp;nbsp;call setProperty&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jan 2018 15:32:08 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2018-01-03T15:32:08Z</dc:date>
    <item>
      <title>onContentRead policy failed to execute.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/oncontentread-policy-failed-to-execute/m-p/39960#M16772</link>
      <description>My aim is to count the number of views on documents. So I have designed the aspect viewable and has property views to store the number of views and written the following class implementation.public void init() {&amp;nbsp;this.onContentRead=new JavaBehaviour(this, "onContentRead", notificationFrequency.TRANSA</description>
      <pubDate>Wed, 03 Jan 2018 07:39:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/oncontentread-policy-failed-to-execute/m-p/39960#M16772</guid>
      <dc:creator>rohit9637</dc:creator>
      <dc:date>2018-01-03T07:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: onContentRead policy failed to execute.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/oncontentread-policy-failed-to-execute/m-p/39961#M16773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are trying to write data in a read-only transaction - of course this will fail. In this use case, you will have to create a custom / nested read-write transaction using the retrying transaction handler (if the enclosing transaction is read-only). Only within the new transaction (or after you have verified the current transaction is read-write) are you safe to&amp;nbsp;call setProperty&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2018 15:32:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/oncontentread-policy-failed-to-execute/m-p/39961#M16773</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-01-03T15:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: onContentRead policy failed to execute.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/oncontentread-policy-failed-to-execute/m-p/39962#M16774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Axel,&lt;/P&gt;&lt;P&gt;Any Documentation or implementation to refer would be more helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2018 15:51:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/oncontentread-policy-failed-to-execute/m-p/39962#M16774</guid>
      <dc:creator>rohit9637</dc:creator>
      <dc:date>2018-01-03T15:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: onContentRead policy failed to execute.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/oncontentread-policy-failed-to-execute/m-p/39963#M16775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe the following blog post can give you some ideas.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://angelborroy.wordpress.com/2015/05/22/alfresco-implementing-delete-behavior/" title="https://angelborroy.wordpress.com/2015/05/22/alfresco-implementing-delete-behavior/" rel="nofollow noopener noreferrer"&gt;Alfresco – Implementing delete behavior | Programming and So&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that case,&amp;nbsp;the&amp;nbsp;processing is executed "after commit".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2018 16:33:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/oncontentread-policy-failed-to-execute/m-p/39963#M16775</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2018-01-03T16:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: onContentRead policy failed to execute.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/oncontentread-policy-failed-to-execute/m-p/39964#M16776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Douglas,&lt;/P&gt;&lt;P&gt;It worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2018 06:24:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/oncontentread-policy-failed-to-execute/m-p/39964#M16776</guid>
      <dc:creator>rohit9637</dc:creator>
      <dc:date>2018-01-04T06:24:44Z</dc:date>
    </item>
  </channel>
</rss>

