Hi all.
I have this question on drools rules and I'm not sure if this
is the right thinking?
I have a rule defined in a drl file:
when
c: Emp_Crime_Record(DISPOSITION == GUILTY);
then
System.out.println(CriminalRecordRule fired...);
end
Here, if the table Emp_Crime_Record is
Hi,
Given the rule you show it doesn't matter how many records you have on a
table UNLESS they are inserted into working memory. So, assuming you
have code outside of that below which inserts each individual record
into working memory, then you can expect one activation to appear on the
agenda
Hi Senlin,
It will be easy to use JPA. Here is an example.
===
This example assume that you have a Person POJO and you want to query
all persons with the age lest than or equal to 20.
public class DroolsTest {
public static final void main(String[] args) {
try {
Thanks. Where could I find the related manual or instructions? I
searched through the doc for drools, and the email archive, there is
really no good example or explanation on how to achieve this.
(What I want is to insert, select or delete some objects in relational
database such as mysql.)
Any
This may be helpful:
http://www.ee.pw.edu.pl/~kijanowj/index.php?site=articlesarticle=2_drools_hibernatelang=en
Cheers,
Jarek
Senlin Liang wrote:
Thanks. Where could I find the related manual or instructions? I
searched through the doc for drools, and the email archive, there is
really no
Hi,
Jaroslaw Kijanowski's article looks like a really good starting point
for you!
Hibernate provide Entity Manager and Annotations extensions if you want
to go the JPA route.
From a Drool's perspective you need only concern yourself with from
which is documented as:-
6.5.2.8. From
The from
Thanks for your answer Kris!
Finally I managed to get all my rule files into one single folder. But sadly
this seems to be not enough. I still get a huge amount of errors in Eclipse,
although running the application works fine.
Creating a .package-file with all the imports in it did not work,
Hi,
Thanks a lot! The information is really helpful.
One more question is that: I have to create the mapping between
objects to relational database tables, or Drools can do this
automatically (by create the tables/objects of correct types) ?
Thanks again,
Senlin
On Tue, Jul 8, 2008 at 9:30 AM,
Hi,
I deployed Drools onto Tomcat and I am trying to figure out how to get security
to work. I want to use LDAP but I don't know where to begin. All of the
tutorials I see make use of JBoss AS. I do not have the option of using JBoss
AS. Can somebody point me in the right direction or let me
I am new to Drools and I wonder if anyone used WordNet from Drools.
Basically, I want to make some simple joins, such as, find words that
are in the same synset, all hypernyms of a word, hyponyms, meronyms of
verbs, adjectives, etc.
I haven't heard of it being applied with Drools. Do let me
Mapping is the job of Hibernate, not Drools ;)
To be able to manage data in/from a database (persist, read,...) you
need to configure Hibernate and one of these config steps is to provide
the mapping.
Cheers,
Jarek
Senlin Liang wrote:
Hi,
Thanks a lot! The information is really helpful.
When I get the chance I'll look over it and see how we can improve
performance.
Would you like to write a blog for this work and we'll put it up at
http://blog.athico.com
Mark
Paul Fodor wrote:
I am new to Drools and I wonder if anyone used WordNet from Drools.
Basically, I want to make
12 matches
Mail list logo