<?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: JPA or JCR to store process related information in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/jpa-or-jcr-to-store-process-related-information/m-p/45213#M25096</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can always create your own VariableType (take a look at JpavariableType etc, and search forum to see how you can plug it in). In this type, you can store any information as a variable, providing you hooks to save/load variables when they are needed using the exact logic you require.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Aug 2011 11:16:57 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2011-08-10T11:16:57Z</dc:date>
    <item>
      <title>JPA or JCR to store process related information</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/jpa-or-jcr-to-store-process-related-information/m-p/45212#M25095</link>
      <description>Hi,I set up Activiti to use my JPA entity to store some of information taken from user during the process execution. All works like a charme. Now at the end of process there is not reference (in history) between process instance and entity stored, then to solve this problem I think is possible to st</description>
      <pubDate>Tue, 09 Aug 2011 22:12:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/jpa-or-jcr-to-store-process-related-information/m-p/45212#M25095</guid>
      <dc:creator>xandros</dc:creator>
      <dc:date>2011-08-09T22:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: JPA or JCR to store process related information</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/jpa-or-jcr-to-store-process-related-information/m-p/45213#M25096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can always create your own VariableType (take a look at JpavariableType etc, and search forum to see how you can plug it in). In this type, you can store any information as a variable, providing you hooks to save/load variables when they are needed using the exact logic you require.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2011 11:16:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/jpa-or-jcr-to-store-process-related-information/m-p/45213#M25096</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-08-10T11:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: JPA or JCR to store process related information</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/jpa-or-jcr-to-store-process-related-information/m-p/45214#M25097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I look at JPAEntityVariableType and I see in the inital comment like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;"Variable type capable of storing reference to JPA-entities"&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the I use this in my process definition:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;serviceTask id="servicetask1" name="Create User Request" activiti:expression="${requestService.create(initiator)}" &lt;BR /&gt;activiti:resultVariable="userRequest"&amp;gt;&amp;lt;/serviceTask&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;where the expression create and return JPA entity&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt; public Request create(String creator){&lt;BR /&gt;&amp;nbsp; logger.info("User " + creator + " create new request.");&lt;BR /&gt;&amp;nbsp; Request entity = new Request();&lt;BR /&gt;&amp;nbsp; entity.setCreator(creator);&lt;BR /&gt;&amp;nbsp; return jpaRequestDao.saveOrUpdate(entity);&lt;BR /&gt; }&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;then at the end of process I have my Entity stored in DB.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I suppose than the reference of my JPA is stored in process variable userRequest.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Where I can see this reference in Activiti Database (for history retrieve)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2011 12:55:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/jpa-or-jcr-to-store-process-related-information/m-p/45214#M25097</guid>
      <dc:creator>xandros</dc:creator>
      <dc:date>2011-08-10T12:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: JPA or JCR to store process related information</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/jpa-or-jcr-to-store-process-related-information/m-p/45215#M25098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Debugging applciation I can see that:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- during process execution the JPA reference is stored in ACT_RU_VARIABLE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- ended the process the JPA reference is removed from ACT_RU_VARIABLE but is not inserted in ACT_HI_DETAIL as I aspected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you help me to understand please.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2011 14:26:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/jpa-or-jcr-to-store-process-related-information/m-p/45215#M25098</guid>
      <dc:creator>xandros</dc:creator>
      <dc:date>2011-08-10T14:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: JPA or JCR to store process related information</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/jpa-or-jcr-to-store-process-related-information/m-p/45216#M25099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Solved&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Setting &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;property name="history" value="&lt;/SPAN&gt;&lt;STRONG&gt;full&lt;/STRONG&gt;&lt;SPAN&gt;" /&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also JPA reference will be stored in history! &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Good, hidden but works…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this info can help other users.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2011 14:35:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/jpa-or-jcr-to-store-process-related-information/m-p/45216#M25099</guid>
      <dc:creator>xandros</dc:creator>
      <dc:date>2011-08-10T14:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: JPA or JCR to store process related information</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/jpa-or-jcr-to-store-process-related-information/m-p/45217#M25100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;this is not only true for jpa references but for all variables. If history != full they will not be preserved after the process ends&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2011 15:08:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/jpa-or-jcr-to-store-process-related-information/m-p/45217#M25100</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-08-10T15:08:03Z</dc:date>
    </item>
  </channel>
</rss>

