<?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: Why? Variables of type ByteArray cannot be used to query in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/why-variables-of-type-bytearray-cannot-be-used-to-query/m-p/42855#M23206</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can put jpeg files in it, serialized pojo's etc.. All stuff that yo do not query, see it as a normal db blob. How often do you query IN blobs? You can add basic metadata in variables, like you do now. But maybe you want it in your domain model and have a cross reference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or enhance the bpmnparser to bemable to add your own extensions on te bpmn level. That is how it should be&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Aug 2011 00:52:02 GMT</pubDate>
    <dc:creator>ronald_van_kuij</dc:creator>
    <dc:date>2011-08-09T00:52:02Z</dc:date>
    <item>
      <title>Why? Variables of type ByteArray cannot be used to query</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/why-variables-of-type-bytearray-cannot-be-used-to-query/m-p/42852#M23203</link>
      <description>Hello all, I have a POJO that I am using to create some meta-data for a user task, so that I may be able to link back to it from a MVC controller like Spring or Struts.&amp;nbsp; I was previously just doing this with a UUID, storing that in the task as a variable and using the task service to look up my task</description>
      <pubDate>Mon, 08 Aug 2011 21:57:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/why-variables-of-type-bytearray-cannot-be-used-to-query/m-p/42852#M23203</guid>
      <dc:creator>mgriffith</dc:creator>
      <dc:date>2011-08-08T21:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Why? Variables of type ByteArray cannot be used to query</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/why-variables-of-type-bytearray-cannot-be-used-to-query/m-p/42853#M23204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Because it simply is meant for things that do not need to be queried… It never will be either. The uuid approach you used was better&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2011 23:05:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/why-variables-of-type-bytearray-cannot-be-used-to-query/m-p/42853#M23204</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-08-08T23:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Why? Variables of type ByteArray cannot be used to query</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/why-variables-of-type-bytearray-cannot-be-used-to-query/m-p/42854#M23205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How can I add additional fields or meta data to the task? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't see why the Pojo is allowed to be set if it can't be queried. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;– MG&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2011 23:23:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/why-variables-of-type-bytearray-cannot-be-used-to-query/m-p/42854#M23205</guid>
      <dc:creator>mgriffith</dc:creator>
      <dc:date>2011-08-08T23:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: Why? Variables of type ByteArray cannot be used to query</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/why-variables-of-type-bytearray-cannot-be-used-to-query/m-p/42855#M23206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can put jpeg files in it, serialized pojo's etc.. All stuff that yo do not query, see it as a normal db blob. How often do you query IN blobs? You can add basic metadata in variables, like you do now. But maybe you want it in your domain model and have a cross reference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or enhance the bpmnparser to bemable to add your own extensions on te bpmn level. That is how it should be&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 00:52:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/why-variables-of-type-bytearray-cannot-be-used-to-query/m-p/42855#M23206</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-08-09T00:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Why? Variables of type ByteArray cannot be used to query</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/why-variables-of-type-bytearray-cannot-be-used-to-query/m-p/42856#M23207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;By serialized pojo you mean a persistent domain model, such as a Jpa entity, is that correct?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 01:52:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/why-variables-of-type-bytearray-cannot-be-used-to-query/m-p/42856#M23207</guid>
      <dc:creator>mgriffith</dc:creator>
      <dc:date>2011-08-09T01:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Why? Variables of type ByteArray cannot be used to query</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/why-variables-of-type-bytearray-cannot-be-used-to-query/m-p/42857#M23208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not all DB's support using a BLOB as a condition in the where-clause (which kinda makes sense, potentially comparing loads of data).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A solution whould be to store the ID of your pojo as a seperate variable or create your own variable-type (search the forum on how to do this) which stores the ID and the ref to the byteArray in one variable-record.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 07:05:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/why-variables-of-type-bytearray-cannot-be-used-to-query/m-p/42857#M23208</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-08-09T07:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Why? Variables of type ByteArray cannot be used to query</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/why-variables-of-type-bytearray-cannot-be-used-to-query/m-p/42858#M23209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;By serialized pojo you mean a persistent domain model, such as a Jpa entity, is that correct?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;No, just a serialized pojo. Activiti and how it 'stores' JPA entities is a different thing and only slightly related (the normal entitymanager is used to store the jpa entity and only a reference is stored in activiti)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 09:05:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/why-variables-of-type-bytearray-cannot-be-used-to-query/m-p/42858#M23209</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-08-09T09:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Why? Variables of type ByteArray cannot be used to query</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/why-variables-of-type-bytearray-cannot-be-used-to-query/m-p/42859#M23210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Not all DB's support using a BLOB as a condition in the where-clause (which kinda makes sense, potentially comparing loads of data).&lt;BR /&gt;&lt;BR /&gt;A solution whould be to store the ID of your pojo as a seperate variable or create your own variable-type (search the forum on how to do this) which stores the ID and the ref to the byteArray in one variable-record.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you see my TaskMetaData class above? It is a serialized pojo.&amp;nbsp; I guess I'm not sure what you mean, and such was the original reason for this post. If I understand you correctly, I should be able to store a serialized pojo and query it, which is what I am trying to do – which subsequently throws the exception.&amp;nbsp; Can you provide a code example?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 13:19:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/why-variables-of-type-bytearray-cannot-be-used-to-query/m-p/42859#M23210</guid>
      <dc:creator>mgriffith</dc:creator>
      <dc:date>2011-08-09T13:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Why? Variables of type ByteArray cannot be used to query</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/why-variables-of-type-bytearray-cannot-be-used-to-query/m-p/42860#M23211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You understood wrong, I is not possible to query bytearray variables, just like it is almost always senseless to query real blob data.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 21:31:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/why-variables-of-type-bytearray-cannot-be-used-to-query/m-p/42860#M23211</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-08-09T21:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Why? Variables of type ByteArray cannot be used to query</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/why-variables-of-type-bytearray-cannot-be-used-to-query/m-p/42861#M23212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You understood wrong, I is not possible to query bytearray variables, just like it is almost always senseless to query real blob data.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not disputing that I'm wrong. Clearly I am because I'm getting the exception. It's not clear to me how my pojo is considered a byte array variable…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 21:42:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/why-variables-of-type-bytearray-cannot-be-used-to-query/m-p/42861#M23212</guid>
      <dc:creator>mgriffith</dc:creator>
      <dc:date>2011-08-09T21:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Why? Variables of type ByteArray cannot be used to query</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/why-variables-of-type-bytearray-cannot-be-used-to-query/m-p/42862#M23213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What should it otherwise be? A java.lang.String, java.lang.Integer? It can't since it isn't. It's youR class. So if you save it as a variable, a check is done if it can be serialized. And guess what the safest 'format' is for storing serialized objects… Yes, a byte array… That is just how it works as is described in te docs&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 22:37:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/why-variables-of-type-bytearray-cannot-be-used-to-query/m-p/42862#M23213</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-08-09T22:37:00Z</dc:date>
    </item>
  </channel>
</rss>

