Markus Helbig wrote:
also using memberOf results in: Unable to create Field Extractor for
'advertisment' of '[ClassObjectType
do i'll miss sth else?
Yes, I guess so ;)
Now you are using
is of type Advertisment=advertisment memberOf catId
As I said before the let side of "contains", "memberOf, etc must be a
field. catId is a field, advertisment is a global.
To have it fixed try
is of type Advertisment=catId memberOF advertisment
On Thu, May 29, 2008 at 2:48 PM, Jaroslaw Kijanowski
> there are two issues:
> - the left side of contains needs to be filed of Item (it also needs to be a
> Collection or array)
> - in your case you should use "memberOf" to check if a field (catId) is a
> member of a Collection or array.
> see the docs for more info (220.127.116.11.1.3.1. Operators)
> However if you're going to use an array as your global, you will run into a
> CCE, because an array doesn't implement the Collection interface , .
> I'm not sure if this is a bug in drools or an expected "constraint",
> bug in the docs.
> Anyway, your safe using a List.
>  drools-core/src/main/java/org/drools/spi/FieldValue.java
> Markus Helbig wrote:
>> again a question, any body had success using globals in LHS?
>> Following DSL
>> [condition]is a Item=Item()
>> [condition]-is of type Advertisment=advertisment contains catId
>> $pli: is a Item
>> - is of type Advertisment
>> // do whatever you want
>> catId is a member of Item
>> advertisment is a Integer array set as global
>> comiling ends with:
>> Unable to create Field Extractor for 'advertisment' of
>> It works fine if advertisment is a member of Item, but i want to have
>> it as global ...
>> rules-users mailing list
> rules-users mailing list