I found the reason to my problem now, just because there is a value &#39;Company ABC&#39; of the cell next to the RuleSet declaration, like this:<br>Company ABC RuleSet com.sample<br><br>So when call SpreadSheetCompiler to compile it, this inner method of compile method of SpreadSheetCompiler---<br>
<pre><span style="background: none repeat scroll 0% 0% rgb(221, 221, 221);" class="mark-7#1">[listener</span>.<a href="http://grepcode.com/file/repository.jboss.org/maven2/org.drools/drools-decisiontables/5.0.1/org/drools/decisiontable/parser/RuleSheetListener.java#RuleSheetListener.getRuleSet%28%29" title="org.drools.decisiontable.parser.RuleSheetListener.getRuleSet() : Package">getRuleSet</a>();] doesn&#39;t work.<br>
<br>Thanks for your reply,Wolfgang.</pre><br><div class="gmail_quote">On 22 April 2011 09:59, Minzeng Liang <span dir="ltr">&lt;<a href="mailto:mzliang723@gmail.com">mzliang723@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I&#39;ve checked that before you said,but found no space, and it&#39;s still &#39;package rule_table&#39; after compiling.<br>Are there other possibilities?<br><br>Thanks.<div><div></div><div class="h5"><br><br><div class="gmail_quote">
2011/4/21 Wolfgang Laun <span dir="ltr">&lt;<a href="mailto:wolfgang.laun@gmail.com" target="_blank">wolfgang.laun@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Check whether the cell &quot;RuleSet com.sample&quot; has leading  spaces. Spaces were not trimmed in 5.1.1 or earlier.<br>

<font color="#888888">-W</font><div><div></div><div><br><br><div class="gmail_quote">On 21 April 2011 13:39, Jay <span dir="ltr">&lt;<a href="mailto:mzliang723@gmail.com" target="_blank">mzliang723@gmail.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi, All!<br>
<br>
I got a question with SpreadSheetCompiler now.<br>
<br>
The story is:<br>
I have two Decision Tables,which are SOP.xls and quotation.xls. When I try<br>
to write a class,named as XLSConverter.java to compile them to drl rule<br>
files,<br>
<br>
I found a strange thing--<br>
<br>
1.The RuleSet of SOP.xls is &#39;com.my.booking.as.drools&#39;, after compiling<br>
SOP.xls, the &#39;package&#39; value of compiled drl file from SOP.xls is<br>
&#39;com.my.booking.as.drools&#39;;<br>
And if I change RuleSet of it to &#39;com.sample&#39;, after compiling, package<br>
value is also &#39;com.sample&#39;, which is normal;<br>
<br>
2.But while RuleSet of quotation.xls is &#39;com.sample&#39;, after compiling<br>
quotation.xls, the package value of compiled drl file from quotation.xls is<br>
&#39;rule_table&#39;;<br>
And no matter what I change RuleSet of it to, after compiling it, its<br>
package value is still &#39;rule_table&#39;.<br>
<br>
Could anybody please help me to explain why is that?<br>
<br>
Any help is appreciated!<br>
<br>
Yours sincerely,<br>
Jay<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/How-does-SpreadSheetCompiler-work-tp2846694p2846694.html" target="_blank">http://drools.46999.n3.nabble.com/How-does-SpreadSheetCompiler-work-tp2846694p2846694.html</a><br>



Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">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><br>
</font></blockquote></div><br>
</div></div><br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">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><br>
<br></blockquote></div><br>
</div></div></blockquote></div><br>