<p>Did you look at the model in Guvnor and the Guvnor example I referenced?</p>
<p>If things still aren&#39;t clear pop by to #guvnor on IRC tomorrow (9:00 GMT onwards) and it will be easier to talk you through your problems.</p>
<p>sent on the move</p>
<p>On 13 Sep 2012 21:57, &quot;richard&quot; &lt;<a href="mailto:rx74me@yahoo.com">rx74me@yahoo.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I guess I don&#39;t understand, I am able to pull the rules from the db.<br>
<br>
I can see how the helloworld example works because i see stuff being used in<br>
sample.drl.<br>
<br>
Dummy rule : mortgages : RULE<br>
Underage : mortgages : RULE<br>
Bankruptcy history : mortgages : RULE<br>
No bad credit checks : mortgages : RULE<br>
no NINJAs : mortgages : RULE<br>
Row 3 Pricing loans : mortgages : RULE<br>
Row 1 Pricing loans : mortgages : RULE<br>
Row 2 Pricing loans : mortgages : RULE<br>
CreditApproval : mortgages : RULE<br>
RegexDslRule : mortgages : RULE<br>
<br>
using the changeset.xml<br>
<br>
and using this loop<br>
<br>
       for( KnowledgePackage kpkg : kbase.getKnowledgePackages() ) {<br>
            Collection&lt;Rule&gt; rules = new ArrayList&lt;Rule&gt;( kpkg.getRules() );<br>
            for( Rule rule : rules ) {<br>
                System.out.println( rule.getName().toString() + &quot; : &quot; +<br>
rule.getPackageName().toString() + &quot; : &quot; +<br>
                                rule.getKnowledgeType().toString());<br>
<br>
            }<br>
        }<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Guvnor-example-how-to-access-rules-in-database-instead-sample-drl-file-tp4019713p4019761.html" target="_blank">http://drools.46999.n3.nabble.com/Guvnor-example-how-to-access-rules-in-database-instead-sample-drl-file-tp4019713p4019761.html</a><br>

Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></p>