<?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: Is there a solution to store heavy variable's id not serialized bytes in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/is-there-a-solution-to-store-heavy-variable-s-id-not-serialized/m-p/154557#M109003</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, we'll look at it shortly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Apr 2014 07:36:49 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2014-04-24T07:36:49Z</dc:date>
    <item>
      <title>Is there a solution to store heavy variable's id not serialized bytes</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-there-a-solution-to-store-heavy-variable-s-id-not-serialized/m-p/154553#M108999</link>
      <description>I have found many serialized entity in act_ge_bytearray, actually I'm using FormType for converting between id and entity,why not just store formType and id instead of serialized bytes?</description>
      <pubDate>Fri, 18 Apr 2014 03:19:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-there-a-solution-to-store-heavy-variable-s-id-not-serialized/m-p/154553#M108999</guid>
      <dc:creator>quaff</dc:creator>
      <dc:date>2014-04-18T03:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a solution to store heavy variable's id not serialized bytes</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-there-a-solution-to-store-heavy-variable-s-id-not-serialized/m-p/154554#M109000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sure. Take a look at the VariableType interface. This allows you to plug in any conversion from POJO of type X to the DB-representation (ValueFields) of a variable and the other way around, depending on the "type_" in the DB:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;public interface VariableType {&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; /**&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * name of variable type (limited to 100 characters length)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; */&lt;BR /&gt;&amp;nbsp; String getTypeName();&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; /**&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * &amp;lt;p&amp;gt;Indicates if this variable type supports caching.&amp;lt;/p&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * &amp;lt;p&amp;gt;If caching is supported, the result of {@link #getValue(ValueFields)} is saved for the &lt;BR /&gt;&amp;nbsp;&amp;nbsp; *&amp;nbsp;&amp;nbsp;&amp;nbsp; duration of the session and used for subsequent reads of the variable's value.&amp;lt;/p&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * &amp;lt;p&amp;gt;If caching is not supported, all reads of a variable's value require a &lt;BR /&gt;&amp;nbsp;&amp;nbsp; *&amp;nbsp;&amp;nbsp;&amp;nbsp; fresh call to {@link #getValue(ValueFields)}.&amp;lt;/p&amp;gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; * @return whether variables of this type are cacheable.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; */&lt;BR /&gt;&amp;nbsp; boolean isCachable();&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; /**&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * @return whether this variable type can store the specified value.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; */&lt;BR /&gt;&amp;nbsp; boolean isAbleToStore(Object value);&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; /**&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * Stores the specified value in the supplied {@link ValueFields}.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; */&lt;BR /&gt;&amp;nbsp; void setValue(Object value, ValueFields valueFields);&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; /**&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * @return the value of a variable based on the specified {@link ValueFields}.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; */&lt;BR /&gt;&amp;nbsp; Object getValue(ValueFields valueFields);&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;An example of such an implementation is the JpaEntityVariableType, which only stores the ID and the classname in the DB. When the variable is needed, the type will be called and a correct JPA entity instance is fetched based on that ID and classname to be used in the engine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just plug in your custom variable type in the processEngineConfiguration and you're good to go…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2014 09:26:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-there-a-solution-to-store-heavy-variable-s-id-not-serialized/m-p/154554#M109000</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2014-04-22T09:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a solution to store heavy variable's id not serialized bytes</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-there-a-solution-to-store-heavy-variable-s-id-not-serialized/m-p/154555#M109001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks,It's very useful. I think BigDecimal should be supported by activiti officially.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;maybe enum type should be supported too,use textValue store name and textValue2 store enum type.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 00:59:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-there-a-solution-to-store-heavy-variable-s-id-not-serialized/m-p/154555#M109001</guid>
      <dc:creator>quaff</dc:creator>
      <dc:date>2014-04-23T00:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a solution to store heavy variable's id not serialized bytes</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-there-a-solution-to-store-heavy-variable-s-id-not-serialized/m-p/154556#M109002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have create a PR, &lt;/SPAN&gt;&lt;A href="https://github.com/Activiti/Activiti/pull/252" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/pull/252&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 01:23:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-there-a-solution-to-store-heavy-variable-s-id-not-serialized/m-p/154556#M109002</guid>
      <dc:creator>quaff</dc:creator>
      <dc:date>2014-04-23T01:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a solution to store heavy variable's id not serialized bytes</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-there-a-solution-to-store-heavy-variable-s-id-not-serialized/m-p/154557#M109003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, we'll look at it shortly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2014 07:36:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-there-a-solution-to-store-heavy-variable-s-id-not-serialized/m-p/154557#M109003</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-04-24T07:36:49Z</dc:date>
    </item>
  </channel>
</rss>

