it looks like you are trying to bind a variable "$s" to both sides of the "and" which makes no sense. It works for an or, as you can bind (and *should*) to both sides of an OR, as each sub-rule may need the binding.
In your snippet, it can't work, as what is the $s bound to ? it can only be bound to one of hte Facts. On 11/24/06, weily li <[EMAIL PROTECTED]> wrote:
Hi All, env: rule engine:3.0.4 Here is the rule: $s :(Student($startDate : startDate ->(utilService.dateWithin($startDate,(new Date()),7, utilService.UNIT_DAY))) and Student(examDate == null)); When using 'AND' to filter out Students meeting both two conditions, the rule editor tells: Multiple markers at this line -unknown: 91:144 Unexpected token ')' -unknown: 91:115 mismatched token: [EMAIL PROTECTED],2587:2589='and',<54>,91:115]; expecting type ')' But once replacing the 'AND' with 'OR', it works fine.... The syntax for 'AND and 'OR' operator at documentation(3.0.4) are the same. why 'AND' can't work at foregoing scenario?? Is there any idea? Thanks! rgds Weily
