Did you look at the model in Guvnor and the Guvnor example I referenced? If things still aren't clear pop by to #guvnor on IRC tomorrow (9:00 GMT onwards) and it will be easier to talk you through your problems.
sent on the move On 13 Sep 2012 21:57, "richard" <[email protected]> wrote: > I guess I don't understand, I am able to pull the rules from the db. > > I can see how the helloworld example works because i see stuff being used > in > sample.drl. > > Dummy rule : mortgages : RULE > Underage : mortgages : RULE > Bankruptcy history : mortgages : RULE > No bad credit checks : mortgages : RULE > no NINJAs : mortgages : RULE > Row 3 Pricing loans : mortgages : RULE > Row 1 Pricing loans : mortgages : RULE > Row 2 Pricing loans : mortgages : RULE > CreditApproval : mortgages : RULE > RegexDslRule : mortgages : RULE > > using the changeset.xml > > and using this loop > > for( KnowledgePackage kpkg : kbase.getKnowledgePackages() ) { > Collection<Rule> rules = new ArrayList<Rule>( kpkg.getRules() > ); > for( Rule rule : rules ) { > System.out.println( rule.getName().toString() + " : " + > rule.getPackageName().toString() + " : " + > rule.getKnowledgeType().toString()); > > } > } > > > > > > > > > -- > View this message in context: > http://drools.46999.n3.nabble.com/Guvnor-example-how-to-access-rules-in-database-instead-sample-drl-file-tp4019713p4019761.html > Sent from the Drools: User forum mailing list archive at Nabble.com. > _______________________________________________ > rules-users mailing list > [email protected] > https://lists.jboss.org/mailman/listinfo/rules-users >
_______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
