[rules-users] Drools Guvnor Issues : Default Constructors & Declaring Dialects

Esteban Aliverti esteban.aliverti at gmail.com
Tue Jul 13 20:05:54 EDT 2010


Hi,

I think that the non-args constructor is required because the classes are
instantiated using reflection: Class.forName("...").newInstance();

Best,

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com


On Tue, Jul 13, 2010 at 9:01 PM, soc.frangis <soc.frangis at gmail.com> wrote:

>
> I have successfully converted a previous rules engine project to Drools and
> was attempting to make the next step by trying out Guvnor for the
> QA/Testing
> module.
>
> 1)Even though my program executed and ran perfectly in Eclipse, i noticed
> the testing QA section of Guvnor would crash with my fact models because i
> did not have a default constructor with no arguments. I made the change,
> but
> is this something that is required for Guvnor QA to work properly (all fact
> models / POJOs MUST have a default no-arg constructor) OR did i just
> configure Guvnor wrong?
>
> I basically solved my problem, just trying to learn why there was a problem
> to begin with.
>
> 2) Also, I noticed that even though the default dialect is java (and not
> specifying it does not cause any issues in Eclipse), the Guvnor QA section
> would not understand the rules unless they explicitly have dialect "java"
> in
> their signature. Of course adding it fixes the problem, but again I am
> trying to learn why. I assumed since it is the default dialect that it
> would
> not need to be stated.  Is this again just the way Guvnor works (doesn't
> work) or do i need to configure it a certain way?
> --
> View this message in context:
> http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Guvnor-Issues-Default-Constructors-Declaring-Dialects-tp965078p965078.html
> Sent from the Drools - User 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/20100713/55c128a6/attachment.html 


More information about the rules-users mailing list