Hi Esteban,

Sorry, I have only one week looking into Drools =)
Yes, I am talking about Drools Expert Database

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

http://pastebin.com/uJd5642D

But its incomplete, for example, I need to create the Rule in the database also

The things that I need to do are:
1) Create Rule and Object Facts in Java and persist them in the Drools Expert Database
2) Check in the Guvnor Interface the Rules and Facts created in the step before
2) Fire the Rules created and get the response

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 =(

Thanks In Advance !
-----Original Message-----
From: Esteban Aliverti <esteban.aliverti@gmail.com>
To: Rules Users List <rules-users@lists.jboss.org>
Sent: Thu, Apr 29, 2010 9:02 pm
Subject: Re: [rules-users] Drools + ETL Process

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.

2010/4/28 <andre.fonseca@mail.com>

Hi all,

I am using Drools 5.0 with Tomcat 6 and MySQL.

Now I need to insert data in the drools database but I DON'T want to use the Guvnor interface.
This is because in the future we'll need to use a kind of ETL process to populate the drools database.

Should I create a java class with JDBC access and perform a SQL direct to that tables?
I did the reverse engineering of the drools database but I could not understood yet where the data are persisted.

Any advice should be very helpful.

Thanks in advance.


_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users




--
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users