Hi,<div><br></div><div>I think that the non-args constructor is required because the classes are instantiated using reflection: Class.forName("...").newInstance();</div><div><br></div><div>Best,<br clear="all"><br>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>- Developer @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com </a><br>- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>
<br><br><div class="gmail_quote">On Tue, Jul 13, 2010 at 9:01 PM, soc.frangis <span dir="ltr"><<a href="mailto:soc.frangis@gmail.com">soc.frangis@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
I have successfully converted a previous rules engine project to Drools and<br>
was attempting to make the next step by trying out Guvnor for the QA/Testing<br>
module.<br>
<br>
1)Even though my program executed and ran perfectly in Eclipse, i noticed<br>
the testing QA section of Guvnor would crash with my fact models because i<br>
did not have a default constructor with no arguments. I made the change, but<br>
is this something that is required for Guvnor QA to work properly (all fact<br>
models / POJOs MUST have a default no-arg constructor) OR did i just<br>
configure Guvnor wrong?<br>
<br>
I basically solved my problem, just trying to learn why there was a problem<br>
to begin with.<br>
<br>
2) Also, I noticed that even though the default dialect is java (and not<br>
specifying it does not cause any issues in Eclipse), the Guvnor QA section<br>
would not understand the rules unless they explicitly have dialect "java" in<br>
their signature. Of course adding it fixes the problem, but again I am<br>
trying to learn why. I assumed since it is the default dialect that it would<br>
not need to be stated. Is this again just the way Guvnor works (doesn't<br>
work) or do i need to configure it a certain way?<br>
<font color="#888888">--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Guvnor-Issues-Default-Constructors-Declaring-Dialects-tp965078p965078.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Guvnor-Issues-Default-Constructors-Declaring-Dialects-tp965078p965078.html</a><br>
Sent from the Drools - User 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>
</font></blockquote></div><br></div>