Class ExternalSpreadsheetCompiler


  • public class ExternalSpreadsheetCompiler
    extends Object
    • Field Detail

      • logger

        protected static final transient org.slf4j.Logger logger
    • Constructor Detail

      • ExternalSpreadsheetCompiler

        public ExternalSpreadsheetCompiler()
    • Method Detail

      • compile

        public String compile​(String xls,
                              String template,
                              int startRow,
                              int startCol)
      • compile

        public String compile​(String xls,
                              String worksheetName,
                              String template,
                              int startRow,
                              int startCol)
      • compile

        public void compile​(String xls,
                            InputType type,
                            List<org.drools.template.parser.DataListener> listeners)
      • compile

        public void compile​(String xls,
                            Map<String,​List<org.drools.template.parser.DataListener>> listeners)
      • compile

        public void compile​(InputStream xlsStream,
                            InputType type,
                            List<org.drools.template.parser.DataListener> listeners)
      • compile

        public void compile​(InputStream xlsStream,
                            Map<String,​List<org.drools.template.parser.DataListener>> listeners)
      • compile

        public String compile​(InputStream xlsStream,
                              InputType type,
                              org.drools.template.parser.TemplateDataListener listener)
        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.XLS
        listener -
        Returns:
        DRL xml, ready for use in drools.
        Throws:
        IOException
      • compile

        public String compile​(InputStream xlsStream,
                              String worksheetName,
                              org.drools.template.parser.TemplateDataListener listener)