<?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 getVariable flushes in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/runtimeservice-getvariable-flushes/m-p/39085#M16445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it is related,&amp;nbsp;and yes, it does work in cases where the data isn't a serialized Java object. It was and is still unclear how the serialization affects the detection of changes (assuming changes are committed/flushed only if there was a change to the contents, that is), but assuming it does affect, is there any&amp;nbsp;way to prevent such superfluous updates from the application side?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have plans to upgrade to 6 soon, so it would be great if this were to work correctly on v6 (I doubt it - I see the relevant part of the code hasn't changed; maybe I am wrong), but I am afraid I won't be able to test this on v6 yet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Feb 2018 14:51:43 GMT</pubDate>
    <dc:creator>mystarrocks</dc:creator>
    <dc:date>2018-02-13T14:51:43Z</dc:date>
    <item>
      <title>RuntimeService getVariable flushes</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/runtimeservice-getvariable-flushes/m-p/39083#M16443</link>
      <description>Hi,Calling org.activiti.engine.RuntimeService.getVariable causes the corresponding ByteArrayEntity content to be updated and flushed when it is supposed to only be read. Because we are attempting to read the process (and its variables) in multiple transactions, this causes an ActivitiOptimisticLocki</description>
      <pubDate>Mon, 12 Feb 2018 19:36:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/runtimeservice-getvariable-flushes/m-p/39083#M16443</guid>
      <dc:creator>mystarrocks</dc:creator>
      <dc:date>2018-02-12T19:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: RuntimeService getVariable flushes</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/runtimeservice-getvariable-flushes/m-p/39084#M16444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems like this is the same problem as&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/thread/225091"&gt;runtimeService.getVariables requires a ReadW&lt;/A&gt;&amp;nbsp;and there it was suggested that the key problem is that the read for deserialization of a java object is not a normal read. Perhaps you could check this by testing without the java objects (maybe you could even work around). It would be great if you&amp;nbsp;could also check whether it affects v6.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2018 10:13:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/runtimeservice-getvariable-flushes/m-p/39084#M16444</guid>
      <dc:creator>ryandawson</dc:creator>
      <dc:date>2018-02-13T10:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: RuntimeService getVariable flushes</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/runtimeservice-getvariable-flushes/m-p/39085#M16445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it is related,&amp;nbsp;and yes, it does work in cases where the data isn't a serialized Java object. It was and is still unclear how the serialization affects the detection of changes (assuming changes are committed/flushed only if there was a change to the contents, that is), but assuming it does affect, is there any&amp;nbsp;way to prevent such superfluous updates from the application side?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have plans to upgrade to 6 soon, so it would be great if this were to work correctly on v6 (I doubt it - I see the relevant part of the code hasn't changed; maybe I am wrong), but I am afraid I won't be able to test this on v6 yet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2018 14:51:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/runtimeservice-getvariable-flushes/m-p/39085#M16445</guid>
      <dc:creator>mystarrocks</dc:creator>
      <dc:date>2018-02-13T14:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: RuntimeService getVariable flushes</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/runtimeservice-getvariable-flushes/m-p/39086#M16446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess the next natural question is whether this is an Activiti bug or a limitation of the feature to serialize a java object in a variable. If you have any thoughts on&amp;nbsp;what could be different about the Activiti implementation in order to avoid the problem that would be great. It may be that raising an issue in GitHub is the best path&amp;nbsp;and if so the more detail that can go in the issue the better.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2018 15:39:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/runtimeservice-getvariable-flushes/m-p/39086#M16446</guid>
      <dc:creator>ryandawson</dc:creator>
      <dc:date>2018-02-13T15:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: RuntimeService getVariable flushes</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/runtimeservice-getvariable-flushes/m-p/39087#M16447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I must admit I haven't looked deeply into what's causing this -- I was referring to the method in &lt;A _jive_internal="true" href="https://community.alfresco.com/thread/219903-activiti-flushes-and-commits-read-only-spring-transaction" rel="nofollow noopener noreferrer"&gt;this&lt;/A&gt; thread to suggest this&amp;nbsp;may not be fixed in the recent versions either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We've decided to handle (catch/retry) the ActivitiOptimisticLockingException due to simultaneous reads (-turned-writes) of such variables for the time being, and we have plans to completely stop storing data in the serialized form going forward.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2018 14:25:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/runtimeservice-getvariable-flushes/m-p/39087#M16447</guid>
      <dc:creator>mystarrocks</dc:creator>
      <dc:date>2018-02-21T14:25:17Z</dc:date>
    </item>
  </channel>
</rss>

