<div dir="ltr"><div><div>You know that rule B hasn&#39;t fired and won&#39;t fire for a given set of facts if you<br>return from fireAllRules() and there is no indication of it having fired. Now, if<br></div>rule A would simply, on its RHS, insertLogical a fact ReadyToFireRuleA, and<br>
you can query this from your Java code, you can execute the &quot;real&quot; <br>consequence of rule A as Java code. (There are other options.)<br><br></div><div>insertLogical needs to be called from the context of a rule.<br>
<br></div><div>Accessing the agenda isn&#39;t in the stable API. You&#39;ll have to inspect the code.<br><br></div><div>-W<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 1 May 2013 10:17, oresch <span dir="ltr">&lt;<a href="mailto:olaf.resch@t-online.de" target="_blank">olaf.resch@t-online.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks for your fast reply.<br>
@sequence: in my case this is not a problem, because rule (A) has another<br>
condition that will only become true if rule (B) has fired at least once.<br>
However, I only want to fire rule (A), if rule (b) will not fire anymore for<br>
a given set of facts.<br>
@use a fact: this might be another way. However, I still would like to know<br>
how I can access the agenda. Just to know it :).<br>
@truth-maintenance: this might be another way. However, I could not manage<br>
to session.insertlogically(obj) from my java code.<br>
BW, Olaf<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Using-rules-in-agenda-as-a-condition-in-a-rule-tp4023598p4023600.html" target="_blank">http://drools.46999.n3.nabble.com/Using-rules-in-agenda-as-a-condition-in-a-rule-tp4023598p4023600.html</a><br>

<div class="HOEnZb"><div class="h5">Sent from the Drools: User forum 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>
</div></div></blockquote></div><br></div>