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".<br>
<br>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.<br>
<br>-W<br><br><br><div class="gmail_quote">2011/5/24 Abhay B. Chaware <span dir="ltr"><<a href="mailto:Abhay.Chaware@kpitcummins.com">Abhay.Chaware@kpitcummins.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">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 </span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">1.
which passed both rule 1 and rule 2 OR</span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">2. which
passed rule 1 but not rule 2 OR</span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">3.
which passed rule 2 but not Rule 1 OR</span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">4.
which did not pass rule 1 and rule 2 and so on .. </span></font></p>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Kind of a new ‘layer’ on top of drools .. ?</span></font></p>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">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 ..</span></font></p>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">-ahbay</span></font></p>
</div>
<br clear="all"> 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.
</div>
<br>_______________________________________________<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>
<br></blockquote></div><br>