<a id="d0e3766">&quot;Whenever a ruleflow-group becomes active [...], any rule within that group that has
          lock-on-active set to true <b><i>will not be activated any more</i></b></a>.&quot; (Emphasis added by me.)<br><br>Do you activate the ruleflow-group before you insert the Car fact?<br><br>-W<br><br><br><div class="gmail_quote">
On 9 August 2011 11:05, bitter <span dir="ltr">&lt;<a href="mailto:rgorzkow@gmail.com">rgorzkow@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;">
Log:<br>
<br>
==&gt;[BeforeActivationFiredEvent:  getActivation()=[Activation rule=Second<br>
rule, act#=1, salience=25, tuple=[fact<br>
0:1:1428842218:1428842218:1:DEFAULT:Car{color=&#39;red&#39;, size=&#39;small&#39;,<br>
price=null}]<br>
],<br>
getKnowledgeRuntime()=org.drools.impl.StatefulKnowledgeSessionImpl@72f6f1b6]<br>
==&gt;[AfterActivationFiredEvent: getActivation()=[Activation rule=Second rule,<br>
act#=1, salience=25, tuple=[fact<br>
0:1:1428842218:1428842218:2:DEFAULT:Car{color=&#39;red&#39;, size=&#39;small&#39;, price=2}]<br>
],<br>
getKnowledgeRuntime()=org.drools.impl.StatefulKnowledgeSessionImpl@72f6f1b6]<br>
==&gt;[BeforeActivationFiredEvent:  getActivation()=[Activation rule=First<br>
rule, act#=0, salience=20, tuple=[fact<br>
0:1:1428842218:1428842218:2:DEFAULT:Car{color=&#39;red&#39;, size=&#39;small&#39;, price=2}]<br>
],<br>
getKnowledgeRuntime()=org.drools.impl.StatefulKnowledgeSessionImpl@72f6f1b6]<br>
==&gt;[AfterActivationFiredEvent: getActivation()=[Activation rule=First rule,<br>
act#=0, salience=20, tuple=[fact<br>
0:1:1428842218:1428842218:3:DEFAULT:Car{color=&#39;red&#39;, size=&#39;small&#39;, price=1}]<br>
],<br>
getKnowledgeRuntime()=org.drools.impl.StatefulKnowledgeSessionImpl@72f6f1b6]<br>
==&gt;[BeforeActivationFiredEvent:  getActivation()=[Activation rule=Second<br>
step, act#=2, salience=40, tuple=[fact<br>
0:1:1428842218:1428842218:3:DEFAULT:Car{color=&#39;red&#39;, size=&#39;small&#39;, price=1}]<br>
],<br>
getKnowledgeRuntime()=org.drools.impl.StatefulKnowledgeSessionImpl@72f6f1b6]<br>
==&gt;[AfterActivationFiredEvent: getActivation()=[Activation rule=Second step,<br>
act#=2, salience=40, tuple=[fact<br>
0:1:1428842218:1428842218:3:DEFAULT:Car{color=&#39;red&#39;, size=&#39;small&#39;, price=1}]<br>
],<br>
getKnowledgeRuntime()=org.drools.impl.StatefulKnowledgeSessionImpl@72f6f1b6]<br>
Car{color=&#39;red&#39;, size=&#39;small&#39;, price=1}<br>
<br>
java.lang.AssertionError:<br>
Expected :2<br>
Actual   :1<br>
        at org.junit.Assert.fail(Assert.java:91)<br>
        at org.junit.Assert.failNotEquals(Assert.java:645)<br>
        at org.junit.Assert.assertEquals(Assert.java:126)<br>
        at org.junit.Assert.assertEquals(Assert.java:145)<br>
        at<br>
CarKnowledgeBaseTest.shouldObtainPriceWhereSalienceIsBigger(CarKnowledgeBaseTest.java:47)<br>
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
        at<br>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>
        at<br>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
        at<br>
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)<br>
        at<br>
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)<br>
        at<br>
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)<br>
        at<br>
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)<br>
        at<br>
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)<br>
        at<br>
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)<br>
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)<br>
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)<br>
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)<br>
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)<br>
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)<br>
        at org.junit.runners.ParentRunner.run(ParentRunner.java:236)<br>
        at org.junit.runner.JUnitCore.run(JUnitCore.java:157)<br>
        at<br>
com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:71)<br>
        at<br>
com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:199)<br>
        at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:62)<br>
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
        at<br>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>
        at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Lock-on-active-and-ruleflow-group-tp3237089p3238338.html" target="_blank">http://drools.46999.n3.nabble.com/Lock-on-active-and-ruleflow-group-tp3237089p3238338.html</a><br>

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>
</font></blockquote></div><br>