<?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 Activiti persistence in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/activiti-persistence/m-p/44108#M24210</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When starting workflows (or subflows) you can pass objects as parameters to the workflow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When passing an object, the object will be stored as a bytearray in the activiti tables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it still needed that I write my own persistence layer (hibernate, jpa, mybatis, …) or can I trust activiti to persist my bussines objects ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Suppose that I start a worflow with order information, so in stead of creating an ORDER table and write the sql to store the data, I let activiti store&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the data in the activiti tables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm aware that the objects are removed when the flow finishes. And I'm also aware that you cannot use regular SQL to consult the data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;T.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Sep 2011 09:00:24 GMT</pubDate>
    <dc:creator>stroobat</dc:creator>
    <dc:date>2011-09-05T09:00:24Z</dc:date>
    <item>
      <title>Activiti persistence</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-persistence/m-p/44108#M24210</link>
      <description>When starting workflows (or subflows) you can pass objects as parameters to the workflow.When passing an object, the object will be stored as a bytearray in the activiti tables.Is it still needed that I write my own persistence layer (hibernate, jpa, mybatis, …) or can I trust activiti to persist my</description>
      <pubDate>Mon, 05 Sep 2011 09:00:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-persistence/m-p/44108#M24210</guid>
      <dc:creator>stroobat</dc:creator>
      <dc:date>2011-09-05T09:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti persistence</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-persistence/m-p/44109#M24211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;save your business data on separated tables.for example maybe you need to delete [clean] data on Activiti databases for some reason [upgrade]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and your business data is lost.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2011 09:23:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-persistence/m-p/44109#M24211</guid>
      <dc:creator>mhdshahdoost</dc:creator>
      <dc:date>2011-09-05T09:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti persistence</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-persistence/m-p/44110#M24212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Regarding this question, can I request the opinion of a member of the Activiti development team? In fact I think that the use of native Activiti persistence mechanism can be a big advantage in some cases.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 14:26:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-persistence/m-p/44110#M24212</guid>
      <dc:creator>paradigma</dc:creator>
      <dc:date>2013-04-23T14:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti persistence</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-persistence/m-p/44111#M24213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;An advantage in some cases, but a real serious domain model, use separate tables and just store some small parts in activiti, or just references.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 19:38:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-persistence/m-p/44111#M24213</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2013-04-23T19:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti persistence</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-persistence/m-p/44112#M24214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ronald is as good as a member of the development team &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Activiti has some basic support for JPA-integration. It's basically a custom "variable type" that allows you to store JPA-entities. Instead of storing the actual serialized Java-object, we store a the class-name and the ID. Next time the variable is required (e.g.. in a getVariables() call), the variable is fetched from the configured entityManager and returned. The JPA-entity will be returned as a process-variable value and the storage is transparent to the consumer of the API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have another way of fetching entities (eg. your own OrderService.getOrderById()), you can create a VariableType that does that call when a variable of that type is needed. When storing the variable in activiti, you can store the ID in the valueFields (which is provided in the VariableType) to use when fetching it later. This approach allows you to seamlessly use business-object, stored in separate tables which don't get deleted by activiti. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The above was a short description, take a look at the org.activiti.engine.impl.variable.JPAEntityVariableType and org.activiti.engine.impl.variable.EntityManagerSession implementations for dirty details.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 09:49:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-persistence/m-p/44112#M24214</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-04-24T09:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti persistence</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-persistence/m-p/44113#M24215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;But I have/take less time to write a better response &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 22:17:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-persistence/m-p/44113#M24215</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2013-04-24T22:17:45Z</dc:date>
    </item>
  </channel>
</rss>

