[rules-users] Guvnor example how to access rules in database instead sample.drl file?

Michael Anstis michael.anstis at gmail.com
Thu Sep 13 17:18:24 EDT 2012


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" <rx74me at yahoo.com> 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
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20120913/894ce939/attachment-0001.html 


More information about the rules-users mailing list