<?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 Long string stored as serialised byte array in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/long-string-stored-as-serialised-byte-array/m-p/151967#M106668</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in my workflow i have a long string (around 1000 characters) and when i use the below statement it stores the value in ge_byte_array table.&amp;nbsp; I really need to read this value using HQL query in my java code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;execution.setVariable("", "Long string with some special characters");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why is it storing a string as byte array.&amp;nbsp; The size of the column for text_ is 4000 in my postgres database.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Raj&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Oct 2013 09:06:36 GMT</pubDate>
    <dc:creator>kethur</dc:creator>
    <dc:date>2013-10-30T09:06:36Z</dc:date>
    <item>
      <title>Long string stored as serialised byte array</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/long-string-stored-as-serialised-byte-array/m-p/151967#M106668</link>
      <description>Hi,in my workflow i have a long string (around 1000 characters) and when i use the below statement it stores the value in ge_byte_array table.&amp;nbsp; I really need to read this value using HQL query in my java code.execution.setVariable("", "Long string with some special characters");Why is it storing a s</description>
      <pubDate>Wed, 30 Oct 2013 09:06:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/long-string-stored-as-serialised-byte-array/m-p/151967#M106668</guid>
      <dc:creator>kethur</dc:creator>
      <dc:date>2013-10-30T09:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Long string stored as serialised byte array</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/long-string-stored-as-serialised-byte-array/m-p/151968#M106669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you post the code you are actually using? Are you sure it's a string?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 09:03:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/long-string-stored-as-serialised-byte-array/m-p/151968#M106669</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-10-31T09:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Long string stored as serialised byte array</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/long-string-stored-as-serialised-byte-array/m-p/151969#M106670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, its a string in a groovy script task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; def details = "User Id:${userId}; Actioned by = ${actionedBy}; Role:${matchRole}; Access Right: ${accessRole}; Group:${groupId}; Request Type:${requestTypeM}; Priority:${priorityM}; &amp;amp;lt;br&amp;amp;gt;Reason Text:${reasonM};Request#:${workflowItemId.minus('_TEMP')}; ";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; execution.setVariable("recDetails", details);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;recDetails is the one that is stored in GE_BYTE_ARRAY.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 10:37:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/long-string-stored-as-serialised-byte-array/m-p/151969#M106670</guid>
      <dc:creator>kethur</dc:creator>
      <dc:date>2013-10-31T10:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Long string stored as serialised byte array</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/long-string-stored-as-serialised-byte-array/m-p/151970#M106671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay, could you create a unit test for this and attach it to a JIRA?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 13:36:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/long-string-stored-as-serialised-byte-array/m-p/151970#M106671</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-11-05T13:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Long string stored as serialised byte array</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/long-string-stored-as-serialised-byte-array/m-p/151971#M106672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have figured out that the string i am defining has other variables concatinated to it.&amp;nbsp; That makes my string a GString object.&amp;nbsp; Hence thats stored as byte array.&amp;nbsp; to avoid this i had to use toString method on Gstring object which returns a string in groovy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Raj&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2013 22:46:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/long-string-stored-as-serialised-byte-array/m-p/151971#M106672</guid>
      <dc:creator>kethur</dc:creator>
      <dc:date>2013-11-06T22:46:03Z</dc:date>
    </item>
  </channel>
</rss>

