Hi man,<br>you are mixing a lot of stuff here..<br>I will recommend you the following steps for achieving the steps that you are mentioning<br>1) Install guvnor<br>2) author the rules inside it.. (it already contains a JCR repository, that is similar to a database, it will allow you to store rules there), you can also author some objects (fact model) inside guvnor.<br>
3) Then you can create tests to execute the rules and see which rules are fired.<br><br>Greetings, hope it helps!<br><div class="gmail_quote">2010/4/30  <span dir="ltr">&lt;<a href="mailto:andre.fonseca@mail.com">andre.fonseca@mail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><font color="black" face="arial" size="2">
<div> <br>
</div>

<div> <font size="2"><font face="Arial, Helvetica, sans-serif">Hi Esteban,<br>
<br>
Sorry, I have only one week looking into Drools =)<br>
Yes, I am talking about Drools Expert Database<br>
<br>
Looking into this <a href="http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/apidocs/org/drools/persistence/jpa/JPAKnowledgeService.html" target="_blank">http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/apidocs/org/drools/persistence/jpa/JPAKnowledgeService.html</a> I tried a sample snippet<br>

<br>
<a href="http://pastebin.com/uJd5642D" target="_blank">http://pastebin.com/uJd5642D</a><br>
<br>
But its incomplete, for example, I need to create the Rule in the database also<br>
<br>
The things that I need to do are:<br>
1) Create Rule and Object Facts in Java and persist them in the Drools Expert Database<br>
2) Check in the Guvnor Interface the Rules and Facts created in the step before<br>
2) Fire the Rules created and get the response<br>
</font></font></div>

<div style="clear: both;"></div>

<div> <br>
</div>

<div> <font size="2"><font face="Arial, Helvetica, sans-serif">Is there someone that have experience using JPA persistence with Drools? I already have a simple project configured using JPA and Hibernate but I still don&#39;t know how to proceed =(<br>

<br>
Thanks In Advance !<br>
</font></font></div><div><div></div><div class="h5">

<div style="font-family: arial,helvetica; font-size: 10pt; color: black;">-----Original Message-----<br>
From: Esteban Aliverti &lt;<a href="mailto:esteban.aliverti@gmail.com" target="_blank">esteban.aliverti@gmail.com</a>&gt;<br>
To: Rules Users List &lt;<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a>&gt;<br>
Sent: Thu, Apr 29, 2010 9:02 pm<br>
Subject: Re: [rules-users] Drools + ETL Process<br>
<br>






<div>

Which drools database are you talking about? If you just want to use drools expert, you don&#39;t need any db. If you want to persist your kbase or rules, feel free to use whatever mechanism you want.<br>
<br>

<div class="gmail_quote">

2010/4/28  <span dir="ltr">&lt;<a href="mailto:andre.fonseca@mail.com" target="_blank">andre.fonseca@mail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><font color="black" face="arial" size="2">

<div> <br>

</div>



<div> <font size="2"><font face="Arial, Helvetica, sans-serif">Hi all,<br>

<br>

I am using Drools 5.0 with Tomcat 6 and MySQL.<br>

<br>

Now I need to insert data in the drools database but I DON&#39;T want to use the Guvnor interface.<br>

This is because in the future we&#39;ll need to use a kind of ETL process to populate the drools database.<br>

<br>

Should I create a java class with JDBC access and perform a SQL direct to that tables?<br>

I did the reverse engineering of the drools database but I could not understood yet where the data are persisted.<br>

<br>

Any advice should be very helpful.<br>

<br>

Thanks in advance.<br>

<br>

</font></font></div>



<div style="clear: both;"></div>

</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>
<br>
<br clear="all"><br>
-- <br>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br>
<br>
Esteban Aliverti<br>


</div>
 


<div style="margin: 0px; font-family: Tahoma,Verdana,Arial,Sans-Serif; font-size: 12px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">

<pre style="font-size: 9pt;"><tt>_______________________________________________<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>
</tt></pre>
</div>
 

</div>
</div></div></font>
<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>