<font color='black' size='2' face='arial'>
<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 http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/apidocs/org/drools/persistence/jpa/JPAKnowledgeService.html I tried a sample snippet<br>
<br>
http://pastebin.com/uJd5642D<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't know how to proceed =(<br>
<br>
Thanks In Advance !<br>
</font></font></div>

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






<div id="AOLMsgPart_3_17d3bc55-e718-4a06-af8f-43aeac23a30c">

Which drools database are you talking about? If you just want to use drools expert, you don'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">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'T want to use the Guvnor interface.<br>

This is because in the future we'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">rules-users@lists.jboss.org</a><br>

<a target="_blank" href="https://lists.jboss.org/mailman/listinfo/rules-users">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>
 <!-- end of AOLMsgPart_3_17d3bc55-e718-4a06-af8f-43aeac23a30c -->


<div id="AOLMsgPart_4_17d3bc55-e718-4a06-af8f-43aeac23a30c" 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">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>
 <!-- end of AOLMsgPart_4_17d3bc55-e718-4a06-af8f-43aeac23a30c -->

</div>
</font>