<p>The fact types/classes are declarative. Look in the model definition in Guvnor.</p>
<p>When you come to use your own classes you will need to upload the JAR to Guvnor as a new JAR model and also include in your client classpath. Models uploaded to Guvnor only serve to drive the UI and are not included in the "rule package" the change set downloads from Guvnor. </p>
<p>This will make mire sense when you get to that stage, but please feel free to drop by when you get there.</p>
<p>sent on the move</p>
<p>On 13 Sep 2012 20:53, "richard" <<a href="mailto:rx74me@yahoo.com">rx74me@yahoo.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am able to get a list of the rules from the mortgage in the database, but<br>
how do I set up the java when I fire the rules, to get them to execute the<br>
underage rule?<br>
<br>
Viewing source for: Underage<br>
1. | rule "Underage"<br>
2. | salience 10<br>
3. | dialect "mvel"<br>
4. | when<br>
5. | application : LoanApplication( )<br>
6. | Applicant( age < "21" )<br>
7. | then<br>
8. | application.setApproved( false );<br>
9. | application.setExplanation( "Underage" );<br>
10. | retract( application );<br>
11. | end<br>
<br>
I assume I need an application class and Applicant class, but where does<br>
LoanApplicatiion come from.<br>
I do not see it anywhere in the examples in the docs?<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-tp4019713p4019759.html" target="_blank">http://drools.46999.n3.nabble.com/Guvnor-example-how-to-access-rules-in-database-instead-sample-drl-file-tp4019713p4019759.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>