<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EstiloCorreo17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=CA
style='font-size:12.0pt'>Hi, <br>
<br>
I've been using drools 4.07 for a while. I have found a weird case. It seems
that when evaluating the LHS some fact is true but the RHS probes it wasn't
actually true. <br>
<br>
The example code &nbsp;is at the end. It is very weird to me I have no clue
about how to solve this or what could be happening! <br>
<br>
rule &quot;A-Rule&quot; <br>
&nbsp; &nbsp; &nbsp; &nbsp; no-loop true <br>
&nbsp; &nbsp; &nbsp; &nbsp; ruleflow-group &quot;validate-task&quot; <br>
&nbsp; &nbsp; &nbsp; &nbsp; salience -9999999 <br>
&nbsp; &nbsp; &nbsp; &nbsp; when <br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &gt;$task : Task( type
== &quot;Creacio_Profile_Radius&quot; ) <br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &gt;eval($task.getParameter(&quot;PRIMARYDNS&quot;)==null)
<br>
&nbsp; &nbsp; &nbsp; &nbsp; then <br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&gt;System.out.println(&quot;&gt;&gt;&gt;DBGPar0:
&quot;+$task.getTechnicalParams().get(0).getName()); <br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&gt;System.out.println(&quot;&gt;&gt;&gt;DBGPar1:
&quot;+$task.getTechnicalParams().get(1).getName()); <br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&gt;System.out.println(&quot;Getparam PRIMARYDNS:
&quot;+$task.getParameter(&quot;PRIMARYDNS&quot;)); <br>
end <br>
<br>
<br>
further explanation: <br>
<br>
The Task class has a List&lt;Parameter&gt; technicalParams, originally the eval
part was: <br>
not(Parameter (name==&quot;PRIMARYDNS&quot;) from $task.technicalParams()) <br>
<br>
it didn't work and I coded this &quot;getParameter&quot; method just to make
some tests. So, it seems the collection appears &quot;empty&quot; to the LHS
but in fact it isnt! <br>
<br>
any clue? <br>
<br>
thanks a lot, <br>
<br>
Javier</span></font><font size=2 face=Arial><span lang=CA style='font-size:
10.0pt;font-family:Arial'><o:p></o:p></span></font></p>

</div>

</body>

</html>