For the positive facts ("passed") there is "truth maintenance"
(logical
assertion), which is well covered in the "Expert" manual, see Section
"Truth
Maintenance with Logical Objects".
Testing pass and failure to pass must be done in a way that avoids premature
firing of the combinations containing negatives. This could be done using
salience or (I think: preferably) using a dedicated agenda group.
-W
2011/5/24 Abhay B. Chaware <Abhay.Chaware(a)kpitcummins.com>
Is it possible to write rule of rules with Drools ? e.g. I write
two
complex rules in drools and then I want a third rule that can be defined to
process facts
1. which passed both rule 1 and rule 2 OR
2. which passed rule 1 but not rule 2 OR
3. which passed rule 2 but not Rule 1 OR
4. which did not pass rule 1 and rule 2 and so on ..
Kind of a new ‘layer’ on top of drools .. ?
I can think of a crud way, that is to flag the fact object when it passed
rule 1 and rule 2 and check the flag in rule 3 .. but am looking for a more
sophisticated way using drools features ..
-ahbay
This message contains information that may be privileged or confidential
and is the property of the KPIT Cummins Infosystems Ltd. It is intended only
for the person to whom it is addressed. If you are not the intended
recipient, you are not authorized to read, print, retain copy, disseminate,
distribute, or use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and delete all copies
of this message. KPIT Cummins Infosystems Ltd. does not accept any liability
for virus infected mails.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users