The first patch is already in the trunk.<br>About the second problem, we are trying to remove the   @CollectionOfElements annotation, (because it&#39;s hibernate specific) that&#39;s why you see the other one commented out. I will try fix it asap, to be able to use toplink as persistence provider as well. Probably that will fix your problem too.<br>
<br><br><div class="gmail_quote">2010/2/18 Dale Wyttenbach <span dir="ltr">&lt;<a href="mailto:dale.wyttenbach@gmail.com">dale.wyttenbach@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
That&#39;s correct, it works fine using h2.  Thanks. <br><br><div class="gmail_quote">2010/2/18 Mauricio Salatino <span dir="ltr">&lt;<a href="mailto:salaboy@gmail.com" target="_blank">salaboy@gmail.com</a>&gt;</span><div>
<div></div><div class="h5"><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Let me take a look at that too.. probably it&#39;s an oracle problem right? I mean, probably it just happen with oracle.. we can create a fix for that too<br><br><br><div class="gmail_quote">2010/2/18 Dale Wyttenbach <span dir="ltr">&lt;<a href="mailto:dale.wyttenbach@gmail.com" target="_blank">dale.wyttenbach@gmail.com</a>&gt;</span><div>

<div></div><div><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">My pleasure.  <div><br></div><div>Within ProcessInstanceInfo, I&#39;ve got a similar observation about the eventTypes member.  &#39;private Set&lt;EventType&gt;&#39; is currently commented out in favor of &#39;private Set&lt;String&gt;&#39;.  When using an Oracle hibernate dialect, this results in the DDL &#39;create table ProcessInstanceInfo_eventTypes&#39; which yields the error &#39;ORA-00972: identifier is too long&#39;.  I imagine this will be resolved when the String is promoted to EventType but I thought you might want to know.<br>



<br><div class="gmail_quote">2010/2/13 Mauricio Salatino <span dir="ltr">&lt;<a href="mailto:salaboy@gmail.com" target="_blank">salaboy@gmail.com</a>&gt;</span><div><div></div><div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



done.. I will apply the patch into the trunk.. it seems to be correct.<br>Thanks a lot!<br><br><div class="gmail_quote">2010/2/13 Dale Wyttenbach <span dir="ltr">&lt;<a href="mailto:dale.wyttenbach@gmail.com" target="_blank">dale.wyttenbach@gmail.com</a>&gt;</span><div>



<div></div><div><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Please see attached.<div><div></div><div><br><br><div class="gmail_quote">2010/2/12 Mauricio Salatino <span dir="ltr">&lt;<a href="mailto:salaboy@gmail.com" target="_blank">salaboy@gmail.com</a>&gt;</span><br>




<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I just want to make sure before apply the patch that the change will not impact in other places.<br>Thanks<div><div></div><div><br><br><div class="gmail_quote">On Fri, Feb 12, 2010 at 5:38 PM, Mauricio Salatino <span dir="ltr">&lt;<a href="mailto:salaboy@gmail.com" target="_blank">salaboy@gmail.com</a>&gt;</span> wrote:<br>






<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">can you post both, previous and new, sql schema generated for the VariableInstanceInfo and ProcessInstanceInfo tables?<div>






<div></div><div><br><br><br><div class="gmail_quote">2010/2/12 Dale Wyttenbach <span dir="ltr">&lt;<a href="mailto:dale.wyttenbach@gmail.com" target="_blank">dale.wyttenbach@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">If you try to write a query that requires VariableInstanceInfo.processId, it won&#39;t work because that class has no processId member.<div>







I guessed that processInstanceId would be a better join column, and that worked (patch attached)</div>
<div><br>Thanks for the reply.</div><div><br><div class="gmail_quote">2010/2/12 Mauricio Salatino <span dir="ltr">&lt;<a href="mailto:salaboy@gmail.com" target="_blank">salaboy@gmail.com</a>&gt;</span><div><div></div><div>







<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hmm..<br>I&#39;m looking at the source and I see the following mapping:<br><br>@OneToMany(cascade = CascadeType.ALL)<br>    @JoinColumn(name = &quot;processId&quot;)<br>    @MapKey(name = &quot;name&quot;)<br>    private Map&lt;String, VariableInstanceInfo&gt; variables          = new HashMap&lt;String, VariableInstanceInfo&gt;();<br>









<br>That makes me think that there is a join column called processId between VariableInstanceInfo and ProcessInstanceInfo.<br><br><br><div class="gmail_quote">2010/2/12 Dale Wyttenbach <span dir="ltr">&lt;<a href="mailto:dale.wyttenbach@gmail.com" target="_blank">dale.wyttenbach@gmail.com</a>&gt;</span><br>









<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div>I have a patch for drools-persistence-jpa should anyone agree with me that ProcessInstanceInfo and VariableInstanceInfo should be joined by processInstanceId.<div>









<div></div><div><br><br><div class="gmail_quote">On Fri, Feb 12, 2010 at 10:52 AM, Dale Wyttenbach <span dir="ltr">&lt;<a href="mailto:dale.wyttenbach@gmail.com" target="_blank">dale.wyttenbach@gmail.com</a>&gt;</span> wrote:<br>










<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I&#39;m trying to adapt the StringVariablePersister presented in <a href="http://blog.athico.com/2009/09/drools-flow-variable-persistence.html" target="_blank">http://blog.athico.com/2009/09/drools-flow-variable-persistence.html</a><div>










<br>
</div><div><a href="http://blog.athico.com/2009/09/drools-flow-variable-persistence.html" target="_blank"></a>I can create process instances with variable &quot;color&quot;:<br><div><br></div><div><div>  private static WorkflowProcessInstance startProcess(StatefulKnowledgeSession ksession, String color) {</div>











<div>    Map&lt;String, Object&gt; vars = new HashMap&lt;String, Object&gt;();</div><div>    vars.put(&quot;color&quot;, color);</div><div>    WorkflowProcessInstance p1 = (WorkflowProcessInstance) ksession.startProcess(&quot;com.sample.ruleflow&quot;, vars);</div>











<div>    return p1;</div><div>  }</div><div><br></div><div>I can count them:</div><div><br></div><div>select </div><div><div>    count(*)</div><div>from </div><div>    ProcessInstanceInfo</div><div><br></div><div>However I&#39;m stymied as to counting process instances with a given color, as there appears to be no join column between ProcessInstanceInfo and VariableInstanceInfo.</div>











<div>Can such a query be written?</div><div><br></div><div>Thanks.</div><div><br></div><div><br></div><div><br></div></div></div></div>
</blockquote></div><br>
</div></div><br></div></div>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><font color="#888888"><br><br clear="all"><br>-- <br> - <a href="http://salaboy.wordpress.com" target="_blank">http://salaboy.wordpress.com</a><br> - <a href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a><br>








 - Salatino &quot;Salaboy&quot; Mauricio -<br>

</font><br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div></div></div><br></div>
<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br> - <a href="http://salaboy.wordpress.com" target="_blank">http://salaboy.wordpress.com</a><br> - <a href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a><br>






 - Salatino &quot;Salaboy&quot; Mauricio -<br>

</div></div></blockquote></div><br><br clear="all"><br>-- <br> - <a href="http://salaboy.wordpress.com" target="_blank">http://salaboy.wordpress.com</a><br> - <a href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a><br>





 - Salatino &quot;Salaboy&quot; Mauricio -<br>

</div></div><br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br>
</div></div><br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div></div></div><div><div></div><div><br><br clear="all"><br>-- <br> - <a href="http://salaboy.wordpress.com" target="_blank">http://salaboy.wordpress.com</a><br> - <a href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a><br>



 - Salatino &quot;Salaboy&quot; Mauricio -<br>

</div></div><br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div></div></div><br></div>
<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div></div></div><div><div></div><div><br><br clear="all"><br>-- <br> - <a href="http://salaboy.wordpress.com" target="_blank">http://salaboy.wordpress.com</a><br> - <a href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a><br>

 - Salatino &quot;Salaboy&quot; Mauricio -<br>

</div></div><br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div></div></div><br>
<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br> - <a href="http://salaboy.wordpress.com">http://salaboy.wordpress.com</a><br> - <a href="http://www.jbug.com.ar">http://www.jbug.com.ar</a><br> - Salatino &quot;Salaboy&quot; Mauricio -<br>