I assume you mean the mortgageApplicationTest.java.
I have looked at the models, so I see the fact types in the model.
But when I try to run mortgageApplicationTest.java
I am getting:
Exception in thread "main" java.lang.NullPointerException
at java.util.Properties$LineReader.readLine(Properties.java:418)
at java.util.Properties.load0(Properties.java:337)
at java.util.Properties.load(Properties.java:325)
at org.drools.agent.RuleAgent.loadFromProperties(RuleAgent.java:299)
at org.drools.agent.RuleAgent.newRuleAgent(RuleAgent.java:256)
at
com.notidiots.MortgageApplicationTest.main(MortgageApplicationTest.java:17)
which is this line.
RuleAgent agent = RuleAgent.newRuleAgent("mortgageapproval.properties");
I have not made any modifications to this file.
Thanks.
--
View this message in context:
http://drools.46999.n3.nabble.com/Guvnor-example-how-to-access-rules-in-d...
Sent from the Drools: User forum mailing list archive at
Nabble.com.