If you take a look at the Verifier it goes through the Drools AST with a
visitor pattern.
It starts by using getting the PackageDescr using DrlParser, this uses Drools
internals so be warned that it might change in the future.
Reader drlReader = new InputStreamReader( stream );
PackageDescr
Since Toni confirms me even before I post this on the list: Using the
Verifier way to get at a column from some spreadsheet is not for the faint
at heart. In addition to what Toni wrote: source code in the Drools AST
corner isn't even commented.
-W
2011/10/4 Toni Rikkola toni.rikk...@gmail.com
Looking at the SpreadsheetCompiler class you can do something like the following
/**
* Generates DRL from the input stream containing the spreadsheet.
*
* @param xlsStream
*The stream to the spreadsheet. Uses the first worksheet found
*for the
Hi All, for suppose I have a DecisionTable like below
CONDITION ACTION
-
COND1 ACTION1
COND2 ACTION2
COND3 ACTION3
-
This is just a representation of the
A condition does not have a name, as you write; values of the cells
below a condition are (usually) literals.
There is no API for extracting parts of a spreadsheet. You can look at
the Drools source code (in the packages org.drools.decisiontable and
.../parser) and write whatever you need - it is
On 03/10/2011 18:03, Wolfgang Laun wrote:
A condition does not have a name, as you write; values of the cells
below a condition are (usually) literals.
There is no API for extracting parts of a spreadsheet. You can look at
the Drools source code (in the packages org.drools.decisiontable and