<?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: runtimeService.getVariables requires a ReadW in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/runtimeservice-getvariables-requires-a-readw/m-p/198320#M151450</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your quick response &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes we do have Java objects as variables so this makes sense.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Probably a silly question but what updates would activity be flushing for a call to getVariables()?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The reason we have the transactions so strict is because according to the Spring Documentation (&lt;/SPAN&gt;&lt;A href="http://docs.spring.io/spring/docs/current/spring-framework-reference/html/transaction.html#transaction-strategies" rel="nofollow noopener noreferrer"&gt;http://docs.spring.io/spring/docs/current/spring-framework-reference/html/transaction.html#transaction-strategies&lt;/A&gt;&lt;SPAN&gt;) if using Hibernate setting a transaction as read-only allows it to do some optimisation&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;….&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Read-only status: A read-only transaction can be used when your code reads but does not modify data. Read-only transactions can be a useful optimization in some cases, such as when you are using Hibernate. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;…..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also it is useful if another developer wrongly modifies a service method that is understood to only perform readonly actions. If marked as readonly an exception will be thrown which will hopefully highlight the issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Billy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Oct 2015 09:15:18 GMT</pubDate>
    <dc:creator>billy_mcdonagh</dc:creator>
    <dc:date>2015-10-22T09:15:18Z</dc:date>
    <item>
      <title>runtimeService.getVariables requires a ReadW</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/runtimeservice-getvariables-requires-a-readw/m-p/198318#M151448</link>
      <description>Hi, I'm using Activiti 5.1.4 with Spring 4.1.5.RELEASE and Hibernate 4.1.9.Final and I'm getting the following issue 'cannot execute UPDATE in a read-only transaction' (stacktrace below) when calling the RuntimeService.getVariables() method. My service method containing the call to the RuntimeServic</description>
      <pubDate>Tue, 20 Oct 2015 10:18:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/runtimeservice-getvariables-requires-a-readw/m-p/198318#M151448</guid>
      <dc:creator>billy_mcdonagh</dc:creator>
      <dc:date>2015-10-20T10:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: runtimeService.getVariables requires a ReadW</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/runtimeservice-getvariables-requires-a-readw/m-p/198319#M151449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, the getVariables() should do any update. But the fact it's a byteArray … could it be you have Serialized java objects as variables? That might explain it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Out of curiosity: whats the use for demarcating your transactions so strictly?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 17:31:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/runtimeservice-getvariables-requires-a-readw/m-p/198319#M151449</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-10-20T17:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: runtimeService.getVariables requires a ReadW</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/runtimeservice-getvariables-requires-a-readw/m-p/198320#M151450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your quick response &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes we do have Java objects as variables so this makes sense.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Probably a silly question but what updates would activity be flushing for a call to getVariables()?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The reason we have the transactions so strict is because according to the Spring Documentation (&lt;/SPAN&gt;&lt;A href="http://docs.spring.io/spring/docs/current/spring-framework-reference/html/transaction.html#transaction-strategies" rel="nofollow noopener noreferrer"&gt;http://docs.spring.io/spring/docs/current/spring-framework-reference/html/transaction.html#transaction-strategies&lt;/A&gt;&lt;SPAN&gt;) if using Hibernate setting a transaction as read-only allows it to do some optimisation&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;….&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Read-only status: A read-only transaction can be used when your code reads but does not modify data. Read-only transactions can be a useful optimization in some cases, such as when you are using Hibernate. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;…..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also it is useful if another developer wrongly modifies a service method that is understood to only perform readonly actions. If marked as readonly an exception will be thrown which will hopefully highlight the issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Billy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2015 09:15:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/runtimeservice-getvariables-requires-a-readw/m-p/198320#M151450</guid>
      <dc:creator>billy_mcdonagh</dc:creator>
      <dc:date>2015-10-22T09:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: runtimeService.getVariables requires a ReadW</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/runtimeservice-getvariables-requires-a-readw/m-p/198321#M151451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;gt; Probably a silly question but what updates would activity be flushing for a call to getVariables()?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not a silly question, I was pondering about that myself &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; I guess for Java object serialization some 'touching' is going on, even if it's just a 'get'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok, thanks for the readonly explanation. I've never saw it being used in practice.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 18:50:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/runtimeservice-getvariables-requires-a-readw/m-p/198321#M151451</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-10-28T18:50:04Z</dc:date>
    </item>
  </channel>
</rss>

