In your Action column you should have:<br><br>ACTION<br>&lt;blank&gt;<br>singleStatus.setAnswer(&quot;$param&quot;);<br><br>cheers<br>Steve<br><br><div><span class="gmail_quote">On 5/1/07, <b class="gmail_sendername">Hehl, Thomas
</b> &lt;<a href="mailto:Thomas.Hehl@acs-inc.com">Thomas.Hehl@acs-inc.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">















<div link="blue" vlink="purple" lang="EN-US">

<div>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">OK, here&#39;s my rules table:</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<table style="width: 395.95pt; border-collapse: collapse;" border="0" cellpadding="0" cellspacing="0" width="528">
 <tbody><tr height="17">
  <td colspan="2" style="border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color black; border-width: medium medium 1pt; padding: 0in 5.4pt; background: black none repeat scroll 0% 50%; width: 225.15pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" bgcolor="black" height="17" nowrap="nowrap" valign="bottom" width="300">

  <p><b><font color="white" face="Tahoma" size="1"><span style="font-size: 7pt; font-family: Tahoma; color: white; font-weight: bold;">RuleTable Court</span></font></b><b><font color="white" face="Tahoma" size="1"><span style="font-size: 7pt; font-family: Tahoma; color: white; font-weight: bold;">
</span></font></b></p>
  </td>
  <td style="border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color black; border-width: medium medium 1pt; padding: 0in 5.4pt; background: black none repeat scroll 0% 50%; width: 170.8pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" bgcolor="black" height="17" nowrap="nowrap" valign="bottom" width="228">

  <p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>
  </td>
 </tr>
 <tr height="12">
  <td style="border-style: none solid solid none; border-color: -moz-use-text-color black black -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; background: rgb(255, 204, 153) none repeat scroll 0% 50%; width: 112.45pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" bgcolor="#ffcc99" height="12" nowrap="nowrap" valign="bottom" width="150">

  <p><font face="Tahoma" size="1"><span style="font-size: 7pt; font-family: Tahoma;">CONDITION</span></font></p>
  </td>
  <td style="border-style: none solid solid none; border-color: -moz-use-text-color black black -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; background: rgb(255, 204, 153) none repeat scroll 0% 50%; width: 112.7pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" bgcolor="#ffcc99" height="12" nowrap="nowrap" valign="bottom" width="150">

  <p><font face="Tahoma" size="1"><span style="font-size: 7pt; font-family: Tahoma;">CONDITION</span></font></p>
  </td>
  <td style="border-style: none solid solid none; border-color: -moz-use-text-color black black -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; background: rgb(255, 204, 153) none repeat scroll 0% 50%; width: 170.8pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" bgcolor="#ffcc99" height="12" nowrap="nowrap" valign="bottom" width="228">

  <p><font face="Tahoma" size="1"><span style="font-size: 7pt; font-family: Tahoma;">ACTION</span></font></p>
  </td>
 </tr>
 <tr height="12">
  <td style="border-style: none solid solid none; border-color: -moz-use-text-color black black -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; background: rgb(255, 204, 153) none repeat scroll 0% 50%; width: 112.45pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" bgcolor="#ffcc99" height="12" nowrap="nowrap" valign="bottom" width="150">

  <p><font face="Tahoma" size="1"><span style="font-size: 7pt; font-family: Tahoma;">singleStatus: SingleParticipantStatus</span></font></p>
  </td>
  <td style="border-style: none solid solid none; border-color: -moz-use-text-color black black -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; background: rgb(255, 204, 153) none repeat scroll 0% 50%; width: 112.7pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" bgcolor="#ffcc99" height="12" nowrap="nowrap" valign="bottom" width="150">

  <p><font face="Tahoma" size="1"><span style="font-size: 7pt; font-family: Tahoma;">singleStatus: SingleParticipantStatus</span></font></p>
  </td>
  <td style="border-style: none solid solid none; border-color: -moz-use-text-color black black -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; background: rgb(255, 204, 153) none repeat scroll 0% 50%; width: 170.8pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" bgcolor="#ffcc99" height="12" nowrap="nowrap" valign="bottom" width="228">

  <p><font face="Tahoma" size="1"><span style="font-size: 7pt; font-family: Tahoma;">singleStatus: SingleParticipantStatus</span></font></p>
  </td>
 </tr>
 <tr height="17">
  <td style="border-style: none solid; border-color: -moz-use-text-color black; border-width: medium 1pt; padding: 0in 5.4pt; background: rgb(255, 204, 153) none repeat scroll 0% 50%; width: 112.45pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" bgcolor="#ffcc99" height="17" valign="bottom" width="150">

  <p><font face="Tahoma" size="1"><span style="font-size: 7pt; font-family: Tahoma;">statusType</span></font></p>
  </td>
  <td style="border-style: none solid none none; border-color: -moz-use-text-color black -moz-use-text-color -moz-use-text-color; border-width: medium 1pt medium medium; padding: 0in 5.4pt; background: rgb(255, 204, 153) none repeat scroll 0% 50%; width: 112.7pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" bgcolor="#ffcc99" height="17" valign="bottom" width="150">

  <p><font face="Tahoma" size="1"><span style="font-size: 7pt; font-family: Tahoma;">value</span></font></p>
  </td>
  <td style="border-style: none solid none none; border-color: -moz-use-text-color black -moz-use-text-color -moz-use-text-color; border-width: medium 1pt medium medium; padding: 0in 5.4pt; background: rgb(255, 204, 153) none repeat scroll 0% 50%; width: 170.8pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" bgcolor="#ffcc99" height="17" valign="bottom" width="228">

  <p><font face="Tahoma" size="1"><span style="font-size: 7pt; font-family: Tahoma;">singleStatus.setAnswer(&quot;$param&quot;);</span></font></p>
  </td>
 </tr>
</tbody></table>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">And this generates a rule that looks like
this, for example:</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<p><font face="Courier New" size="3"><span style="font-size: 12pt;">&nbsp;&nbsp;&nbsp;&nbsp; then singleStatus: SingleParticipantStatus.singleStatus.setAnswer(&quot;statusOnly&quot;);;</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">This generates an error b/c it doesn&#39;t
know how to resolve SingleParticipantStatus.singleStatus.setAnswer, which is
where the error below is coming from.</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">So I changed the rule table to simply say:</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<p><font face="Tahoma" size="1"><span style="font-size: 7pt; font-family: Tahoma;">setAnswer(&quot;$param&quot;);</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Which generates:</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<p style=""><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; then</span></font><font face="Courier New" size="2"><span style="font-size: 10pt;"></span></font></p>

<p><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; singleStatus:
SingleParticipantStatus.setAnswer(&quot;statusOnly&quot;);;</span></font></p>

<p><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;">&nbsp;</span></font></p>

<p><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;">Which causes the
non-static method error since setAnswer is an instance method.</span></font></p>

<p><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;">&nbsp;</span></font></p>

<p><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;">Can anyone tell
me what I&#39;m doing wrong?</span></font></p>

<p><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;">&nbsp;</span></font></p>

<p><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;">Thanks.</span></font><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">
</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<div>

<div style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">

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

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

<p><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;"> Hehl, Thomas 
<br>
<b><span style="font-weight: bold;">Sent:</span></b> Monday, April 30, 2007 8:42
AM<br>
<b><span style="font-weight: bold;">To:</span></b> &#39;<a href="mailto:rules-users@lists.jboss.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">rules-users@lists.jboss.org</a>&#39;<br>
<b><span style="font-weight: bold;">Subject:</span></b> Newbie: using a
spreadsheet</span></font></p>

</div><div><span class="e" id="q_11243ad194853d46_1">

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">I&#39;ve been following the ExamplePricePolicy example and
am attempting to build my own rules using a spreadsheet.</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">In my spreadsheet rules, I have the following:</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>

<table style="width: 170pt; border-collapse: collapse;" border="0" cellpadding="0" cellspacing="0" width="227">
 <tbody><tr height="12">
  <td style="border: 1pt solid black; padding: 0in 5.4pt; background: rgb(255, 204, 153) none repeat scroll 0% 50%; width: 170pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" bgcolor="#ffcc99" height="12" nowrap="nowrap" valign="bottom" width="227">

  <p><font face="Tahoma" size="1"><span style="font-size: 7pt; font-family: Tahoma;">ACTION</span></font></p>
  </td>
 </tr>
 <tr height="12">
  <td style="border-style: none solid solid none; border-color: -moz-use-text-color black black -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; background: rgb(255, 204, 153) none repeat scroll 0% 50%; width: 170pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" bgcolor="#ffcc99" height="12" nowrap="nowrap" valign="bottom" width="227">

  <p><font face="Tahoma" size="1"><span style="font-size: 7pt; font-family: Tahoma;">singleStatus: SingleParticipantStatus</span></font></p>
  </td>
 </tr>
 <tr height="17">
  <td style="border-style: none solid; border-color: -moz-use-text-color black; border-width: medium 1pt; padding: 0in 5.4pt; background: rgb(255, 204, 153) none repeat scroll 0% 50%; width: 170pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" bgcolor="#ffcc99" height="17" valign="bottom" width="227">

  <p><font face="Tahoma" size="1"><span style="font-size: 7pt; font-family: Tahoma;">singleStatus.setAnswer(&quot;$param&quot;);</span></font></p>
  </td>
 </tr>
</tbody></table>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">This throws:</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>

<p style=""><font color="red" face="Courier New" size="2"><span style="font-size: 10pt; color: red;">org.drools.rule.InvalidRulePackage: Rule Compilation error
SingleParticipantStatus.singleStatus cannot be resolved</span></font><font face="Courier New" size="2"><span style="font-size: 10pt;"></span></font></p>

<p style=""><font color="red" face="Courier New" size="2"><span style="font-size: 10pt; color: red;">Rule Compilation error SingleParticipantStatus.singleStatus cannot
be resolved</span></font><font face="Courier New" size="2"><span style="font-size: 10pt;"></span></font></p>

<p style=""><font color="red" face="Courier New" size="2"><span style="font-size: 10pt; color: red;">Rule Compilation error SingleParticipantStatus.singleStatus cannot
be resolved</span></font><font face="Courier New" size="2"><span style="font-size: 10pt;"></span></font></p>

<p style=""><font color="red" face="Courier New" size="2"><span style="font-size: 10pt; color: red;">Rule Compilation error SingleParticipantStatus.singleStatus cannot
be resolved</span></font><font face="Courier New" size="2"><span style="font-size: 10pt;"></span></font></p>

<p style=""><font color="red" face="Courier New" size="2"><span style="font-size: 10pt; color: red;">Rule Compilation error SingleParticipantStatus.singleStatus cannot
be resolved</span></font><font face="Courier New" size="2"><span style="font-size: 10pt;"></span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">When I googled on this error, most of the occurrences
appeared to be related to an import issue, but if I change the third line to:</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>

<p><font face="Tahoma" size="1"><span style="font-size: 7pt; font-family: Tahoma;">setAnswer(&quot;$param&quot;);</span></font></p>

<p><font face="Tahoma" size="1"><span style="font-size: 7pt; font-family: Tahoma;">&nbsp;</span></font></p>

<p><font face="Tahoma" size="1"><span style="font-size: 7pt; font-family: Tahoma;">It blows up because it knows that setAnswer is not a static
method, which tends to tell me that it found my class.</span></font></p>

<p><font face="Tahoma" size="1"><span style="font-size: 7pt; font-family: Tahoma;">&nbsp;</span></font></p>

<p><font face="Tahoma" size="1"><span style="font-size: 7pt; font-family: Tahoma;">I think I&#39;ve parroted the example exactly and so
I&#39;m confused as to where to go with this issue.</span></font></p>

<p><font face="Tahoma" size="1"><span style="font-size: 7pt; font-family: Tahoma;">&nbsp;</span></font></p>

<p><font face="Tahoma" size="1"><span style="font-size: 7pt; font-family: Tahoma;">Thanks!</span></font></p>

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

</div>


<br>_______________________________________________<br>rules-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">
https://lists.jboss.org/mailman/listinfo/rules-users</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>Steven Williams<br><br>Supervising Consultant<br><br>Object Consulting<br>Office: 8615 4500 Mob: 0439 898 668 Fax: 8615 4501
<br><a href="mailto:stevenw@objectconsulting.com.au">stevenw@objectconsulting.com.au</a><br><a href="http://www.objectconsulting.com.au">www.objectconsulting.com.au</a><br><br>consulting | development | training | support
<br>our experience makes the difference