When I try that declaration syntax I get the following exception loading the code:
Exception in thread "main" java.lang.NullPointerException
at org.drools.common.AbstractRuleBase.addPackages(AbstractRuleBase.java:488)
at org.drools.reteoo.ReteooRuleBase.addPackages(ReteooRuleBase.java:469)
at org.drools.reteoo.ReteooRuleBase.addPackage(ReteooRuleBase.java:476)
at org.gregcode.mnb.Main.main(Main.java:36)
This is with the released 5.4.0beta2
--- On Sun, 3/11/12, Davide Sottara <dsotty(a)gmail.com> wrote:
From: Davide Sottara <dsotty(a)gmail.com>
Subject: Re: [rules-users] Having problems with traits in 5.4.0beta2
To: rules-users(a)lists.jboss.org
Date: Sunday, March 11, 2012, 5:00 AM
Hi Greg
we changed the way traits are declared. Now you have to do:
declare trait HungryMonkey
end
We'll stress this change in the documentation of the next
release.
Sorry but the code is still very experimental and subject to
changes...
but I do really appreciate the fact that this functionality
is being used
and tested.
Please let me know any further problem or suggestions you
may have.
Thanks
Davide
dsotty(a)gmail.com
--
View this message in context:
http://drools.46999.n3.nabble.com/rules-users-Having-problems-with-traits...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users