Re: [rules-users] Having problems with traits in 5.4.0beta2

2012-03-29 Thread Davide Sottara
The fix should have been applied today, you can find it in HEAD or in the upcoming 5.4CR1 release Best Davide -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-Having-problems-with-traits-in-5-4-0beta2-tp3816181p3869656.html Sent from the Drools: User forum mailing li

Re: [rules-users] Having problems with traits in 5.4.0beta2

2012-03-11 Thread Greg Barton
7;s being held. It would be great if I could annotate Monkey.setHolding() to indicate that it not only modifies Monkey.holding, but also Entity.location and Entity.holds. --- On Sun, 3/11/12, Davide Sottara wrote: > From: Davide Sottara > Subject: Re: [rules-users] Having problems wi

Re: [rules-users] Having problems with traits in 5.4.0beta2

2012-03-11 Thread Davide Sottara
Is HungryMoneky an interface you have outside the DRL? Can you send me the full DRL anyway? Thanks Davide -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-Having-problems-with-traits-in-5-4-0beta2-tp3816181p3816923.html Sent from the Drools: User forum mailing list a

Re: [rules-users] Having problems with traits in 5.4.0beta2

2012-03-11 Thread Greg Barton
ddPackages(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 wrote: > From: Davide Sottara > Subject: Re: [rules-users]

Re: [rules-users] Having problems with traits in 5.4.0beta2

2012-03-11 Thread Davide Sottara
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 functional

[rules-users] Having problems with traits in 5.4.0beta2

2012-03-10 Thread Greg Barton
I'm trying out the traits feature and I'm having some problems. I'm preparing simple Monkeys and Bananas example with existing classes that I want to add traits, but when I try adding a trait (either declared in DRL or as a static interface) I'm getting an exception thrown from the call to don(