<div dir="ltr">I preface this with saying that you should be doing what Mark suggests. If what he suggests is going to create &quot;too many drools&quot; or &quot;clutter your files&quot; then I&#39;d recommend putting them in a decision table. <div>
<br></div><div>Another way you could get information like this is to use the event listeners built into drools in order to give you information about activation events. For example, you could have a listener print out the antecedents to a drool in the beforeActivationFired method.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Nov 20, 2013 at 1:18 PM, Mark Proctor <span dir="ltr">&lt;<a href="mailto:mproctor@codehaus.org" target="_blank">mproctor@codehaus.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">create additional rules, with just the patterns you know you want to match and record the result in the consequence - so you can check/assert later.<br>

<span class="HOEnZb"><font color="#888888"><br>
Mark<br>
</font></span><div class="HOEnZb"><div class="h5">On 20 Nov 2013, at 20:49, swaroop &lt;<a href="mailto:swaroop.oggu@gmail.com">swaroop.oggu@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Hi ,<br>
&gt;<br>
&gt; Is there any way to determine which conditions matched/passed from list of<br>
&gt; conditions defined for a rule . Also it would be helpful to know if there is<br>
&gt; any means to relate a fact and the rule fired. In the below mentioned rule<br>
&gt; can we know which condition passed ?<br>
&gt;<br>
&gt; Eg;<br>
&gt; rule &quot;check which Object matched&quot;<br>
&gt; when<br>
&gt; Any of following conditions are true<br>
&gt; Condition1<br>
&gt; Condition2<br>
&gt; Condition3<br>
&gt; then<br>
&gt; insert(Obj A)<br>
&gt;<br>
&gt;<br>
&gt; Regards<br>
&gt; Oggu<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; View this message in context: <a href="http://drools.46999.n3.nabble.com/How-to-know-which-condition-passed-from-list-of-conditions-tp4026853.html" target="_blank">http://drools.46999.n3.nabble.com/How-to-know-which-condition-passed-from-list-of-conditions-tp4026853.html</a><br>

&gt; Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br>
<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>