<div dir="ltr">Jeremy is right. In the log you can see 2 activations (one for each fact you insert), then the execution of one of the activations and then the cancellation of the other. How many rules do you have in your kbase? Is your rule as simple as the one you posted? Do you have more than just 1 condition in your LHS? Are you doing anything else other than the system.out in your RHS?<div>

<br></div><div style>Best Regards, </div></div><div class="gmail_extra"><br clear="all"><div><br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a></div>


<br><br><div class="gmail_quote">On Fri, Feb 8, 2013 at 4:17 PM, Jeremy Ary <span dir="ltr">&lt;<a href="mailto:jeremy.ary@gmail.com" target="_blank">jeremy.ary@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr"><div class="im"><div><span style="font-family:arial,sans-serif;font-size:13px">==&gt;[ActivationCancelledEvent: getCause()=CLEAR, getActivation()=[Activation</span><br style="font-family:arial,sans-serif;font-size:13px">

<span style="font-family:arial,sans-serif;font-size:13px">rule=TEST, act#=0, salience=0, tuple=[fact 0:1:30100654:78406:1:DEFAULT:</span><span style="font-family:arial,sans-serif;font-size:13px">ONE]</span><br>
</div><div><br></div></div>There&#39;s definitely something cancelling the activation, but it&#39;s not apparent to me right-out what&#39;s causing it based on the information provided so far. To Estaban&#39;s comment, would it be possible to share an isolated example as I can&#39;t help but to think there&#39;s something missing from what we&#39;ve seen so far that would cause this to occur.</div>

<div class="HOEnZb"><div class="h5">
<div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Feb 8, 2013 at 9:14 AM, Jeremy Ary <span dir="ltr">&lt;<a href="mailto:jeremy.ary@gmail.com" target="_blank">jeremy.ary@gmail.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Actually, incorrect, I misread the output, sorry.</div><div><div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, Feb 8, 2013 at 9:12 AM, Jeremy Ary <span dir="ltr">&lt;<a href="mailto:jeremy.ary@gmail.com" target="_blank">jeremy.ary@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">It appears you have a rule named CLEAR not included in the original post that&#39;s cancelling the activation that should println ONE, can you share this rule with us?</div>



<div><div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Fri, Feb 8, 2013 at 9:10 AM, pdario <span dir="ltr">&lt;<a href="mailto:dario.piantanida@gmail.com" target="_blank">dario.piantanida@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




I&#39;ll try to make it; in the meanwhile, do you find this meaningful?<br>
<br>
==&gt;[ActivationCreatedEvent: getActivation()=[Activation rule=TEST, act#=0,<br>
salience=0, tuple=[fact 0:1:30100654:78406:1:DEFAULT:ONE]<br>
], getKnowledgeRuntime()=org.drools.impl.StatefulKnowledgeSessionImpl@4703c]<br>
==&gt;[ObjectInsertedEventImpl: getFactHandle()=[fact<br>
0:1:30100654:78406:1:DEFAULT:ONE], getObject()=ONE,<br>
getKnowledgeRuntime()=org.drools.impl.StatefulKnowledgeSessionImpl@4703c,<br>
getPropagationContext()=PropagationContextImpl [activeActivations=0,<br>
dormantActivations=0, entryPoint=EntryPoint::DEFAULT, factHandle=[fact<br>
0:1:30100654:78406:1:DEFAULT:ONE], leftTuple=null, originOffset=-1,<br>
propagationNumber=3, rule=null, type=0]]<br>
==&gt;[ActivationCreatedEvent: getActivation()=[Activation rule=TEST, act#=1,<br>
salience=0, tuple=[fact 0:2:30649454:83500:2:DEFAULT:TWO]<br>
], getKnowledgeRuntime()=org.drools.impl.StatefulKnowledgeSessionImpl@4703c]<br>
==&gt;[ObjectInsertedEventImpl: getFactHandle()=[fact<br>
0:2:30649454:83500:2:DEFAULT:TWO], getObject()=TWO,<br>
getKnowledgeRuntime()=org.drools.impl.StatefulKnowledgeSessionImpl@4703c,<br>
getPropagationContext()=PropagationContextImpl [activeActivations=1,<br>
dormantActivations=0, entryPoint=EntryPoint::DEFAULT, factHandle=[fact<br>
0:2:30649454:83500:2:DEFAULT:TWO], leftTuple=null, originOffset=-1,<br>
propagationNumber=4, rule=null, type=0]]<br>
TWO<br>
==&gt;[BeforeActivationFiredEvent:  getActivation()=[Activation rule=TEST,<br>
act#=1, salience=0, tuple=[fact 0:2:30649454:83500:2:DEFAULT:TWO]<br>
], getKnowledgeRuntime()=org.drools.impl.StatefulKnowledgeSessionImpl@4703c]<br>
==&gt;[ActivationCancelledEvent: getCause()=CLEAR, getActivation()=[Activation<br>
rule=TEST, act#=0, salience=0, tuple=[fact 0:1:30100654:78406:1:DEFAULT:ONE]<br>
], getKnowledgeRuntime()=org.drools.impl.StatefulKnowledgeSessionImpl@4703c]<br>
==&gt;[AfterActivationFiredEvent: getActivation()=[Activation rule=TEST,<br>
act#=1, salience=0, tuple=[fact 0:2:30649454:83500:2:DEFAULT:TWO]<br>
], getKnowledgeRuntime()=org.drools.impl.StatefulKnowledgeSessionImpl@4703c]<br>
Direct Line, l&#39;assicurazione online con il famoso Telefono Rosso e il Mouse<br>
sulle Ruote. Nel 1985 Direct Line ha rivoluzionato il mercato nel Regno<br>
Unito lanciando per prima la vendita diretta di polizze auto. In Italia ha<br>
vinto nel 2008 il primo premio per i clienti piu&#39; soddisfatti.<br>
<a href="http://www.directline.it" target="_blank">www.directline.it</a> RESTRICTED: This e-mail (including any linked or attached<br>
documents) is intended for the addressee/s only and may contain<br>
confidential, proprietary or legally privileged information. Please do not<br>
distribute further without prior permission from the author<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Evaluate-rules-for-multiple-facts-of-the-same-type-within-a-StateuflSession-tp4022157p4022162.html" target="_blank">http://drools.46999.n3.nabble.com/Evaluate-rules-for-multiple-facts-of-the-same-type-within-a-StateuflSession-tp4022157p4022162.html</a><br>





<div><div>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" target="_blank">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>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></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></blockquote></div><br></div>