Sounds like you want to use truthmaintenance and probably insertlogical.
There's a good tutorial/description on it here
http://feeds.athico.com/~r/DroolsRSS/~3/BbuYJS41FDc/drools-inference-and-...
Basically, in your cases, you would insert a 'result' object with a given name for
each of your base rules. Your user rules can then simply match the existence of whatever
result objects that you wish in the standard manner.
Thomas
-----Original Message-----
From: rules-users-bounces(a)lists.jboss.org [mailto:rules-users-
bounces(a)lists.jboss.org] On Behalf Of orchid
Sent: 01 February 2010 07:13
To: rules-users(a)lists.jboss.org
Subject: Re: [rules-users] Checking in one rule the "result" of another rule
Wolfgang and Edson, thank you very much for the detailed replies. I
understand that logically my wish might be incorrect, but this is a
requirement we have. I will try to explain my situation in detailed:
1. The facts are of class Word. The rules check characteristics of words,
such as letters distance, number of letter occurrences in a word, etc...
2. I have user rules (Ri), such as: check if in a given word the letter 'a'
appears more than twice and the distance between 'a' and 'd' is 2.
3. I have "base" rules (ri) which perform only one checking
4. I would like to build user rules out of base rules. For example: R = r0
AND r1, where
r0 = a given word the letter a appears more than twice
r1 = in a given word the distance between 'a' and 'd' is 2
I use "rule splitting" in order to get the rule rational, i.e. which parts
of the rule caused it to be fired.
Sorry for the long post. I hope my need is clearer.
Thank you very much for your help !!!
--
View this message in context:
http://n3.nabble.com/Checking-in-one-rule-the-
result-of-another-rule-tp179837p180827.html
Sent from the Drools - User mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
This message is confidential and intended only for the addressee. If you have received
this message in error, please immediately notify the postmaster(a)nds.com and delete it from
your system as well as any copies. The content of e-mails as well as traffic data may be
monitored by NDS for employment and security purposes.
To protect the environment please do not print this e-mail unless necessary.
An NDS Group Limited company.
www.nds.com