<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 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 "A-Rule" <br>
no-loop true <br>
ruleflow-group "validate-task" <br>
salience -9999999 <br>
when <br>
>$task : Task( type
== "Creacio_Profile_Radius" ) <br>
>eval($task.getParameter("PRIMARYDNS")==null)
<br>
then <br>
>System.out.println(">>>DBGPar0:
"+$task.getTechnicalParams().get(0).getName()); <br>
>System.out.println(">>>DBGPar1:
"+$task.getTechnicalParams().get(1).getName()); <br>
>System.out.println("Getparam PRIMARYDNS:
"+$task.getParameter("PRIMARYDNS")); <br>
end <br>
<br>
<br>
further explanation: <br>
<br>
The Task class has a List<Parameter> technicalParams, originally the eval
part was: <br>
not(Parameter (name=="PRIMARYDNS") from $task.technicalParams()) <br>
<br>
it didn't work and I coded this "getParameter" method just to make
some tests. So, it seems the collection appears "empty" 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>