Package net.firstpartners.drools.data

Examples of net.firstpartners.drools.data.RuleSource.addGlobal()


    //Set these into a new RuleSource object
    RuleSource ruleSource = new RuleSource();
    ruleSource.setRulesLocation(RULES_FILES);

    //Add the globals
    ruleSource.addGlobal(NEXT_AVAILABLE_SHIPMENT_DATE, new OoompaLoompaDate(2009,02,03));

    //Add the facts
    ruleSource.addFact(candyBarOrder);
    ruleSource.addFact(holiday1);
    ruleSource.addFact(holiday2);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.