Some of the answer depends on how frequently or concurrently rule1 and<br>rule2 are expected to fire. But essentially a single counter incremented by 1<br>in rule1 and rule2 should be sufficient, but it must be provided individually<br>
for each set of fact participating in rule1, rule2 and rule3. (But this is also<br>true for your list.)<br> <br>-W<br><br><div class="gmail_quote">On Sun, Jan 31, 2010 at 1:00 PM, orchid <span dir="ltr">&lt;<a href="mailto:maya.pollack@gmail.com">maya.pollack@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Hi All,<br>
I have &quot;rule1&quot; and &quot;rule2&quot;, very simple rules. I would like in &quot;rule3&quot; to<br>
check one of the following:<br>
&quot;rule1&quot; AND &quot;rule2&quot; (i.e. if both rule1 and rule2 were fired)<br>
&quot;rule1&quot; OR &quot;rule2&quot; (rule1 or rule2 was fired)<br>
<br>
How can I achieve this? Does the &quot;extends&quot; keyword might help here?<br>
<br>
I achieved that buy defining a list, to which rule1 and rule2 in the RHS<br>
inserted some value. In rule3 I checked the values of that list. I would<br>
like to ask if there are some prettier solutions.<br>
<br>
Thanks in advance.<br>
Any help would be appreciated.<br>
<font color="#888888">--<br>
View this message in context: <a href="http://n3.nabble.com/Checking-in-one-rule-the-result-of-another-rule-tp179837p179837.html" target="_blank">http://n3.nabble.com/Checking-in-one-rule-the-result-of-another-rule-tp179837p179837.html</a><br>

Sent from the Drools - User mailing list archive at Nabble.com.<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>
</font></blockquote></div><br>