<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)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        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:blue;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-GB link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I tried changing the name to anything but
the same problem persists.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>-Ade<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span lang=EN-US
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>
rules-users-bounces@lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] <b><span style='font-weight:bold'>On
Behalf Of </span></b>Wolfgang Laun<br>
<b><span style='font-weight:bold'>Sent:</span></b> 15 April 2010 12:14<br>
<b><span style='font-weight:bold'>To:</span></b> Rules Users List<br>
<b><span style='font-weight:bold'>Cc:</span></b> Edson Tirelli<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [rules-users] Double
Handling</span></font><span lang=EN-US><o:p></o:p></span></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>It seems that Drools is
confused by the usage of the class name &quot;Decision&quot;<br>
(which is used in the core: java/org/drools/jpdl/core/node/Decision.java<br>
<br>
I can reproduce a similar effect, simply by renaming a class in a working
example<br>
to &quot;Decision&quot;.<br>
<br>
-W<br>
<br>
<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>On Thu, Apr 15, 2010 at 12:49 PM, Ade Timi &lt;<a
href="mailto:adeyinka.timi@nathean.com">adeyinka.timi@nathean.com</a>&gt;
wrote:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>I still haven't gotten any break through with my problem. The issue is
my<br>
LHS of the rule. I am using eclipse. For some reason when I refer to this<br>
particular java class and its variables they can't be seen by the rule but<br>
its setters and getters can be seen on the RHS of the rule. I get an error<br>
saying:<br>
BuildError: Unable to create Field Extractor for 'custPointer' of<br>
'[ClassObjectType class=com.nathean.rules.Decision]' in rule 'Your First<br>
Rule'<br>
<br>
Anyone seen this before? It's basic drools but I just can't find a solution<br>
to this. It works for my other classes, and I can't see whats been done<br>
differently here! Help please! See code below:<br>
<br>
DRL:<br>
package com.nathean.rules<br>
import com.nathean.rules.Decision<br>
rule &quot;Your First Rule&quot;<br>
&nbsp; &nbsp; &nbsp; &nbsp;when<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$id :
Decision(custPointer == 0)<br>
&nbsp; &nbsp; &nbsp; &nbsp;then<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$id.getCustPointer();<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;System.out.println();<br>
<br>
end<br>
<br>
Java Class:<br>
package com.nathean.rules;<br>
public class Decision {<br>
&nbsp; &nbsp; &nbsp; &nbsp;private int custPointer;<br>
&nbsp; &nbsp; &nbsp; &nbsp;/**<br>
&nbsp; &nbsp; &nbsp; &nbsp; * @param customerPointer the customerPointer to set<br>
&nbsp; &nbsp; &nbsp; &nbsp; */<br>
&nbsp; &nbsp; &nbsp; &nbsp;public void setCustPointer(int custPointer) {<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;this.custPointer =
custPointer;<br>
&nbsp; &nbsp; &nbsp; &nbsp;}<br>
&nbsp; &nbsp; &nbsp; &nbsp;/**<br>
&nbsp; &nbsp; &nbsp; &nbsp; * @return the customerPointer<br>
&nbsp; &nbsp; &nbsp; &nbsp; */<br>
&nbsp; &nbsp; &nbsp; &nbsp;public int getCustPointer() {<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return custPointer;<br>
&nbsp; &nbsp; &nbsp; &nbsp;}<br>
}<br>
<br>
-Ade<br>
<br>
<br>
-----Original Message-----<br>
From: Wolfgang Laun [mailto:<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>]<br>
Sent: 14 April 2010 12:54<br>
To: <a href="mailto:adeyinka.timi@nathean.com">adeyinka.timi@nathean.com</a><br>
Subject: Re: [rules-users] Double Handling<br>
<br>
Any update on this? (My last guess - no update - seems to be the only<br>
reasonable explanation, so I'm curious.)<br>
<br>
-W<br>
<br>
<br>
<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><o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>