Package net.firstpartners.drools

Examples of net.firstpartners.drools.FileRuleLoader


   * @throws ClassNotFoundException
   */
  public HSSFWorkbook runExcelDataExample() throws IOException, DroolsParserException, ClassNotFoundException{

    //Handle to the Spreadsheet Rule Runner and Rule file loader
    IRuleLoader ruleLoader = new FileRuleLoader();
    SpreadSheetRuleRunner ruleRunner = new SpreadSheetRuleRunner(ruleLoader);

    //Start Integrate in new RuleRunner
    //Identify where the rules are stored
    RuleSource ruleSource = new RuleSource();
View Full Code Here


  }

  public  HSSFWorkbook runExcelDataRulesExample() throws IOException, DroolsParserException, ClassNotFoundException{

    //Handle to the Spreadsheet Rule Runner and Rule file loader
    IRuleLoader ruleLoader = new FileRuleLoader();
    SpreadSheetRuleRunner ruleRunner = new SpreadSheetRuleRunner(ruleLoader);

    //Start Integrate in new RuleRunner
    //Identify where the rules are stored
    RuleSource ruleSource = new RuleSource();
View Full Code Here

    ruleSource.setRulesLocation(RULES_FILES);
    ruleSource.setFacts(ranges.getAllRangesAndCells());
    ruleSource.setGlobals(globals);

    // Load and fire our rules files against the data
    new RuleRunner(new FileRuleLoader()).runStatelessRules(ruleSource,excelLogger);

    // Log the cell contents
    log.debug("============ Excel Cell Contents Out =========");
    for (Range r : ranges) {
      log.debug(r);
View Full Code Here

    ruleSource.setFacts(ranges.getAllRangesAndCells());
    ruleSource.setGlobals(globals);


    // Load and fire our rules files against the data
    new RuleRunner(new FileRuleLoader()).runStatelessRules(ruleSource,excelLogger);


    // update the excel spreadsheet with the result of our rules
    RangeConvertor.convertCellsToExcel(wb, ranges);
View Full Code Here

  public HSSFWorkbook runRuleflowExample() throws IOException, DroolsParserException, ClassNotFoundException{


    //Handle to the Spreadsheet Rule Runner and Rule file loader
    IRuleLoader ruleLoader = new FileRuleLoader();
    SpreadSheetRuleRunner sheetRuleRunner = new SpreadSheetRuleRunner(ruleLoader);

    //Start Integrate in new RuleRunner
    //Identify where the rules are stored
    RuleSource ruleSource = new RuleSource();
View Full Code Here

    // - the name(s) of the files containing our rules
    // - the fact object(s) containing the information to be passed in and out of our rules
    // - a list of global values


    new RuleRunner(new FileRuleLoader()).runStatelessRules( ruleSource , new ConsoleLogger());

    //Look at the results
    log.info("======= Results - shipping schedule =======");
    log.info(candyBarOrder);
View Full Code Here

    // - the name(s) of the files containing our rules
    // - the fact object(s) containing the information to be passed in and out of our rules
    // - a list of global values


    new RuleRunner(new FileRuleLoader()).runStatelessRules( ruleSource , new ConsoleLogger());

    //Look at the results
    log.info("======= Results - shipping schedule =======");
    log.info(candyBarOrder);
View Full Code Here

TOP

Related Classes of net.firstpartners.drools.FileRuleLoader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.