Sorry wrong code

               for (String ruleFile : rules) {
                    System.out.println("Loading file: " + ruleFile);
                    builder.addPackageFromDrl(new
InputStreamReader(this.getClass().getResourceAsStream(ruleFile)));
                }

                Package pkg = builder.getPackage();
                ruleBase.addPackage(pkg);

                WorkingMemory workingMemory = ruleBase.newStatefulSession();
                System.out.println("Inserting fact: " + enrollment);
                workingMemory.insert(enrollment);

                System.out.println("Firing Rules");
                workingMemory.fireAllRules();

            } catch (Exception e) {
                e.printStackTrace();
            }

-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Does-not-execute-builder-addPackageFromDrl-new-InputStreamReader-this-getClass-getResourceAsStream-r-tp781934p782099.html
Sent from the Drools - User mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to