Re: [rules-users] Using global in LHS

2008-05-30 Thread Jaroslaw Kijanowski
Markus Helbig wrote: Hi, 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 right? As I said before the let side of "contains"

Re: [rules-users] Using global in LHS

2008-05-30 Thread Markus Helbig
Hi, also using memberOf results in: Unable to create Field Extractor for 'advertisment' of '[ClassObjectType do i'll miss sth else? Cheers Markus On Thu, May 29, 2008 at 2:48 PM, Jaroslaw Kijanowski <[EMAIL PROTECTED]> wrote: > Hi, > there are two issues: > - the left side of contains needs t

Re: [rules-users] Using global in LHS

2008-05-29 Thread Jaroslaw Kijanowski
Hi, 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 (6.5.2.1.1.3.1. Operators) However

[rules-users] Using global in LHS

2008-05-29 Thread Markus Helbig
Hi, 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 rule when $pli: is a Item - is of type Advertisment then