I found the reason to my problem now, just because there is a value 'Company ABC' of the cell next to the RuleSet declaration, like this:
Company ABC RuleSet com.sample
So when call SpreadSheetCompiler to compile it, this inner method of compile method of SpreadSheetCompiler---
[listener.getRuleSet();] doesn't work.
Thanks for your reply,Wolfgang.
I've checked that before you said,but found no space, and it's still 'package rule_table' after compiling.
Are there other possibilities?
Thanks.2011/4/21 Wolfgang Laun <wolfgang.laun@gmail.com>
Check whether the cell "RuleSet com.sample" has leading spaces. Spaces were not trimmed in 5.1.1 or earlier.
-WOn 21 April 2011 13:39, Jay <mzliang723@gmail.com> wrote:
Hi, All!
I got a question with SpreadSheetCompiler now.
The story is:
I have two Decision Tables,which are SOP.xls and quotation.xls. When I try
to write a class,named as XLSConverter.java to compile them to drl rule
files,
I found a strange thing--
1.The RuleSet of SOP.xls is 'com.my.booking.as.drools', after compiling
SOP.xls, the 'package' value of compiled drl file from SOP.xls is
'com.my.booking.as.drools';
And if I change RuleSet of it to 'com.sample', after compiling, package
value is also 'com.sample', which is normal;
2.But while RuleSet of quotation.xls is 'com.sample', after compiling
quotation.xls, the package value of compiled drl file from quotation.xls is
'rule_table';
And no matter what I change RuleSet of it to, after compiling it, its
package value is still 'rule_table'.
Could anybody please help me to explain why is that?
Any help is appreciated!
Yours sincerely,
Jay
--
View this message in context: http://drools.46999.n3.nabble.com/How-does-SpreadSheetCompiler-work-tp2846694p2846694.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users