Package org.drools.decisiontable
Class ExternalSpreadsheetCompiler
java.lang.Object
org.drools.decisiontable.ExternalSpreadsheetCompiler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompile(InputStream xlsStream, InputStream templateStream, int startRow, int startCol) compile(InputStream xlsStream, InputStream templateStream, InputType type, int startRow, int startCol) compile(InputStream xlsStream, String worksheetName, InputStream templateStream, int startRow, int startCol) compile(InputStream xlsStream, String worksheetName, TemplateDataListener listener) voidcompile(InputStream xlsStream, Map<String, List<DataListener>> listeners) voidcompile(InputStream xlsStream, InputType type, List<DataListener> listeners) compile(InputStream xlsStream, InputType type, TemplateDataListener listener) Generates DRL from the input stream containing the spreadsheet.voidvoidcompile(String xls, InputType type, List<DataListener> listeners)
-
Field Details
-
logger
protected static final transient org.slf4j.Logger logger
-
-
Constructor Details
-
ExternalSpreadsheetCompiler
public ExternalSpreadsheetCompiler()
-
-
Method Details
-
compile
-
compile
-
compile
-
compile
public String compile(InputStream xlsStream, InputStream templateStream, int startRow, int startCol) -
compile
public String compile(InputStream xlsStream, InputStream templateStream, InputType type, int startRow, int startCol) -
compile
public String compile(InputStream xlsStream, String worksheetName, InputStream templateStream, int startRow, int startCol) -
compile
-
compile
-
compile
-
compile
-
compile
Generates DRL from the input stream containing the spreadsheet.- Parameters:
xlsStream- The stream to the spreadsheet. Uses the first worksheet found for the decision tables, ignores others.type- The type of the file - InputType.CSV or InputType.XLSlistener-- Returns:
- DRL xml, ready for use in drools.
- Throws:
IOException
-
compile
-