Support XLS source type in RuleAgent
------------------------------------
Key: JBRULES-1680
URL:
http://jira.jboss.com/jira/browse/JBRULES-1680
Project: JBoss Drools
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: Drl Parser/Builder
Affects Versions: 4.0.7
Reporter: Michael Neale
Assigned To: Toni Rikkola
Fix For: 5.0.0.M2
Have had a request to support rules in xls format directly in the rule agent (we support
drl).
How to implement:
1) look at SourcePackageProvider in drools-compiler, replicate that in the
drools-decisiontable module (including the test, copy SourcePackageProviderTest for ideas
on how to test it).
A decision table simply renders to drl, via a SpreadsheetCompiler, so it should be pretty
similar.
2) Look at FileScanner.readFile() drools-core - you can see it is looking for .pkg and
.drl, add .xls to this, and if .xls is found, reflectively load the FileLoader
implementation (has to use reflection as it is not in the drools-core module classpath).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira