<?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 storing non-serializable object into process variables map in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/storing-non-serializable-object-into-process-variables-map/m-p/105619#M73839</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;I need to store result of a bean invocation back into the process variable map using: activiti:resultVariable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The result object is not serializable. I get the error message that VariableType is not supported.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I do not have access to the result object class and therefore cannot modify it to be serializable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to cache non-serializable object into the map? I do not need it to be stored in the db (activiti:async="false"). It can be cached in the memory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If possible, do I need to create another VariableType? Any example of a VariableType that is not serializable?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;activiti newbie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jul 2012 18:50:11 GMT</pubDate>
    <dc:creator>workflowuser2</dc:creator>
    <dc:date>2012-07-20T18:50:11Z</dc:date>
    <item>
      <title>storing non-serializable object into process variables map</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/storing-non-serializable-object-into-process-variables-map/m-p/105619#M73839</link>
      <description>Hi,I need to store result of a bean invocation back into the process variable map using: activiti:resultVariable.The result object is not serializable. I get the error message that VariableType is not supported.I do not have access to the result object class and therefore cannot modify it to be seri</description>
      <pubDate>Fri, 20 Jul 2012 18:50:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/storing-non-serializable-object-into-process-variables-map/m-p/105619#M73839</guid>
      <dc:creator>workflowuser2</dc:creator>
      <dc:date>2012-07-20T18:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: storing non-serializable object into process variables map</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/storing-non-serializable-object-into-process-variables-map/m-p/105620#M73840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A VariableType needs some way to save/restore the state of the object you're about to store with it, e.g. if a process reaches a wait state. In case the result of the bean call is reproducible, maybe you can save something like a query parameter and upon loading the variable again, just call the bean again with that same parameter? Activiti provides you with two VARCHAR(4000) fields called TEXT_ and TEXT2_ in ACT_RU_VARIABLE that you can use in combination with your own VariableType. I believe a good example of such a VariableType would be JPAEntityVariableType.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or maybe it's possible to implement a custom VariableType but leave the setValue() / getValue() methods to do nothing. Then you would need to have VariableType.isCachable() return true and the value would only be stored in memory (questions is for how long? Certainly not after wait states, but maybe it even expires before that?)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope it helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2012 02:44:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/storing-non-serializable-object-into-process-variables-map/m-p/105620#M73840</guid>
      <dc:creator>naag</dc:creator>
      <dc:date>2012-07-23T02:44:10Z</dc:date>
    </item>
  </channel>
</rss>

