Re: [rules-users] memberOf mvel list

2010-02-21 Thread Wolfgang Laun
The original problem seems to be due to not using a *variable* on the right hand side of "memberOf", as defined in Drools Expert, subsection 4.8.2.1.1.3.1., Operators. -W On Sun, Feb 21, 2010 at 11:14 PM, deaddowney wrote: > > I'm using a map because this is a legacy class that is quite dynamic a

Re: [rules-users] Trying to build Drools trunk / getting build failure

2010-02-21 Thread Mark Proctor
On 21/02/2010 21:52, Chuck Irvine wrote: I'm trying to build Drools from the trunk. I updated from svn about 10 minutes ago. My build command was: >mvn -Declipse -Ddocumentation clean install -DlocalEclipseDrop=C:\tmp\drools\eclipse The result of my build is given below. I have two questio

Re: [rules-users] Rules categorization/packages

2010-02-21 Thread Jervisliu
A new feature called "Sharable artifacts/Global artifacts" will be available in Drools 5.1. This feature allows you share an asset among different packages. It also creates a global area (you can consider it as a global package). Potentially you can promote an asset that you think is more appro

Re: [rules-users] memberOf mvel list

2010-02-21 Thread Ansgar Konermann
Hi Adam, try operator "in" instead of "memberOf". AFAIK, "in" deals with list literals (which is what you want) whereas "memberof" can be used to check whether some value is part of a collection given as variable reference. Kind regards Ansgar Am 21.02.2010 23:14, schrieb deaddowney: > I'm u

[rules-users] memberOf mvel list

2010-02-21 Thread deaddowney
I'm using a map because this is a legacy class that is quite dynamic and can contain arbitrary tag/values. Ideally, if I knew all the attributes I would declare them as fields, but I'm stuck with this map at the moment. Regardless, using your explanation, why does when

[rules-users] Trying to build Drools trunk / getting build failure

2010-02-21 Thread Chuck Irvine
I'm trying to build Drools from the trunk. I updated from svn about 10 minutes ago. My build command was: >mvn -Declipse -Ddocumentation clean install -DlocalEclipseDrop=C:\tmp\drools\eclipse The result of my build is given below. I have two questions: 1. I'm a little confused about "-DlocalEc

Re: [rules-users] Welcome to the "rules-users" mailing list

2010-02-21 Thread Corneil du Plessis
You are expecting map values to be elevated somehow from Object to Integer and String. By using typed attributes in the Person class you can overcome your problem. Sent from my HTC (Android) On Feb 21, 2010 9:28 PM, "Adam Krieg" wrote: I’m new to Drools and having trouble accessing my Domain ob

[rules-users] Using memberOf on inline mvel list was Re: Welcome to the "rules-users" mailing list

2010-02-21 Thread spamcontrol
Apologies for the initial subject. Changing to a more appropriate one. On Feb 21, 2010, at 2:26 PM, Adam Krieg wrote: > I’m new to Drools and having trouble accessing my Domain object which is > basically a container around a map. > > class Person { >Map props; >public Map getProps();

[rules-users] Welcome to the "rules-users" mailing list

2010-02-21 Thread Adam Krieg
I’m new to Drools and having trouble accessing my Domain object which is basically a container around a map. class Person { Map props; public Map getProps(); …. Extra stuff } I want to create a rule that will match when Age is greater than 20 and name is one of “Fred”, “Barney”, or