<div dir="ltr"><p class="MsoNormal" style="text-align:left;text-autospace:none;direction:ltr;
unicode-bidi:embed"><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;
color:black">Hi All,</span></p>

<p class="MsoNormal" style="text-align:left;text-autospace:none;direction:ltr;
unicode-bidi:embed"><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;
color:black"> </span></p>

<p class="MsoNormal" style="text-align:left;text-autospace:none;direction:ltr;
unicode-bidi:embed"><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;
color:black">I have an urgent problem which I hope someone can explain it to me
and how it can be solved.</span></p>

<p class="MsoNormal" style="text-align:left;text-autospace:none;direction:ltr;
unicode-bidi:embed"><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;
color:black"> </span></p>

<p class="MsoNormal" style="text-align:left;text-autospace:none;direction:ltr;
unicode-bidi:embed"><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;
color:black">I created 2 rules &quot;Update 1&quot; and &quot;Update 2&quot;,
basically the rules are the same, get all the CaseLog objects according to
&quot;Category&quot; and &quot;Value&quot; and update the Case, which holds a
list of CaseLogs, with a new object.</span></p>

<p class="MsoNormal" style="text-align:left;text-autospace:none;direction:ltr;
unicode-bidi:embed"><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;
color:black"> </span></p>

<p class="MsoNormal" style="text-align:left;text-autospace:none;direction:ltr;
unicode-bidi:embed"><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;
color:black">Note that in the update method I am updating the working memory by
retracting the old log and inserting the new one.</span></p>

<p class="MsoNormal" style="text-align:left;text-autospace:none;direction:ltr;
unicode-bidi:embed"><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;
color:black"> </span></p>

<p class="MsoNormal" style="text-align:left;text-autospace:none;direction:ltr;
unicode-bidi:embed"><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;
color:black">Now for the problem:</span></p>

<p class="MsoNormal" style="text-align:left;text-autospace:none;direction:ltr;
unicode-bidi:embed"><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;
color:black"><br>
The problem is that on one hand, when I insert a new log line all rules without
lock-on-active re-fire. On the other hand, rules with lock-on-active seem to disregard
the addition of the new object and fire only on the lines that were present
when their group was activated.</span></p>

<p class="MsoNormal" style="text-align:left;text-autospace:none;direction:ltr;
unicode-bidi:embed"><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;
color:black"> </span></p>

<p class="MsoNormal" style="text-align:left;text-autospace:none;direction:ltr;
unicode-bidi:embed"><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;
color:black">Please see the rules below</span></p>

<p class="MsoNormal" style="text-align:left;text-autospace:none;direction:ltr;
unicode-bidi:embed"><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;
color:black"> </span></p>

<p class="MsoNormal" style="text-align:left;text-autospace:none;direction:ltr;
unicode-bidi:embed"><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;
color:black">Thanks</span></p>

<p class="MsoNormal" style="text-align:left;text-autospace:none;direction:ltr;
unicode-bidi:embed"><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;
color:black">Yaniv</span></p>

<p class="MsoNormal" style="text-align:left;text-autospace:none;direction:ltr;
unicode-bidi:embed"><b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:#960000"> </span></b></p>

<p class="MsoNormal" style="text-align:left;text-autospace:none;direction:ltr;
unicode-bidi:embed"><b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:#960000">rule</span></b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black"> </span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:green">&quot;Update 1&quot;</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-align:left;text-autospace:none;direction:ltr;
unicode-bidi:embed"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black">      </span><b><span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:#960000">salience</span></b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> 4</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal" style="text-align:left;text-autospace:none;direction:ltr;
unicode-bidi:embed"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black">      </span><b><span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:#960000">ruleflow-group</span></b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> </span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:green">&quot;group1&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal" style="text-align:left;text-autospace:none;direction:ltr;
unicode-bidi:embed"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black">      </span><b><span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:#960000">lock-on-active</span></b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-align:left;text-autospace:none;direction:ltr;
unicode-bidi:embed"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black">      </span><b><span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:#960000">when</span></b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-align:left;text-autospace:none;direction:ltr;
unicode-bidi:embed"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black">           
$case : Case()</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-align:left;text-autospace:none;direction:ltr;
unicode-bidi:embed"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black">           
$myLog : CaseLog( myClass == &quot;Category&quot;, </span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-align:left;text-autospace:none;direction:ltr;
unicode-bidi:embed"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black">                 
myValue == </span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:green">&quot;1&quot;</span><span style="font-size:10.0pt;font-family:
&quot;Courier New&quot;;color:black"> )</span><span style="font-size:10.0pt;font-family:
&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-align:left;text-autospace:none;direction:ltr;
unicode-bidi:embed"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black">      </span><b><span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:#960000">then</span></b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-align:left;text-autospace:none;direction:ltr;
unicode-bidi:embed"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black">           
System.out.println(</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:green">&quot;Logic: Update 1&quot;</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black">);</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-align:left;text-autospace:none;direction:ltr;
unicode-bidi:embed"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black">           
$case.update($myLog,40.0,</span><b><span style="font-size:10.0pt;font-family:
&quot;Courier New&quot;;color:#960000">null</span></b><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black">);</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-align:left;text-autospace:none;direction:ltr;
unicode-bidi:embed"><b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:#960000">end</span></b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-align:left;text-autospace:none;direction:ltr;
unicode-bidi:embed"><b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:#960000">rule</span></b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black"> </span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:green">&quot;Update 2&quot;</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-align:left;text-autospace:none;direction:ltr;
unicode-bidi:embed"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black">      </span><b><span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:#960000">salience</span></b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> 0</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal" style="text-align:left;text-autospace:none;direction:ltr;
unicode-bidi:embed"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black">      </span><b><span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:#960000">ruleflow-group</span></b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> </span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:green">&quot;group1&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal" style="text-align:left;text-autospace:none;direction:ltr;
unicode-bidi:embed"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black">      </span><b><span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:#960000">lock-on-active</span></b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-align:left;text-autospace:none;direction:ltr;
unicode-bidi:embed"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black">      </span><b><span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:#960000">when</span></b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-align:left;text-autospace:none;direction:ltr;
unicode-bidi:embed"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black">           
$case : Case()</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-align:left;text-autospace:none;direction:ltr;
unicode-bidi:embed"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black">           
$myLog : CaseLog( myClass == &quot;Category&quot;, </span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-align:left;text-autospace:none;direction:ltr;
unicode-bidi:embed"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black">                 
myValue == </span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:green">&quot;1&quot;</span><span style="font-size:10.0pt;font-family:
&quot;Courier New&quot;;color:black">, $score : myScore )</span><span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-align:left;text-autospace:none;direction:ltr;
unicode-bidi:embed"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black">      </span><b><span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:#960000">then</span></b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-align:left;text-autospace:none;direction:ltr;
unicode-bidi:embed"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black">           
System.out.println(</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:green">&quot;Logic: Update 2 &quot;</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"> + $score + 5.0);</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-align:left;text-autospace:none;direction:ltr;
unicode-bidi:embed"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black">           
$case.update($myLog,$score + 5,</span><b><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:#960000">null</span></b><span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">);</span><span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#960000">end</span></b></p></div>