<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
You do understand that what you have there is a cross product, you'll
need two objects to match against that - were you expecting this to
wokr against and on the same single EMIAgainstProperty object?<br>
<br>
Mark<br>
Natraj Gudla wrote:
<blockquote
cite="mid:d55672f70707182319g36b878c2kf8fd0af337ee670e@mail.gmail.com"
type="cite">
<div>I am facing some serious blocking issues while writing few
rules. In the rule below, a1, a2 are Double objects. When i have the
first statement in the rule " EMIAgainstProperty( obj : a1 )", the rule
does not fire....when i comment and re phrase the second line as emi :
EMIAgainstProperty( a2 >= ( <b><font color="#960000" size="2">new</font></b><font
size="2"> Double(10* 1.5 )) ), the rule is fired.</font></div>
<div> </div>
<div><font size="2">Why is the first line making the rule not to
fire. I have reported a similar problem yesterday, but could not find a
resolution. On the other hand, i am unable to refer a1 directly to say
a1.doubleValue
() in the second line, it throws up and error. Any help??? What is the
way out? </font></div>
<div><b><font color="#960000" size="2">
<p align="left">rule</p>
</font></b><font size="2"> </font><font color="#008000" size="2">"Test"</font><font
size="2">
</font><b><font color="#960000" size="2">when</font></b><font size="2">
<p align="left">EMIAgainstProperty( obj : a1 )</p>
<p align="left">emi : EMIAgainstProperty( a2 >= ( </p>
</font><b><font color="#960000" size="2">new</font></b><font size="2">
Double(obj.doubleValue() * 1.5 )) )
</font><b><font color="#960000" size="2">then</font></b><font size="2">
<p align="left">System.out.println(</p>
</font><font color="#008000" size="2">" Passed "</font><font size="2">);</font><b><font
color="#960000" size="2">
<p align="left">end</p>
</font></b></div>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
</blockquote>
<br>
</body>
</html>