Demichelis Matteo wrote:
> Hello,
> 
>  
> 
> following the example 3.15 in JBoss Rules, "or with binding":
> 
> pensioner: ( Person(....) or Person(...) )
> 
>  
> 
> I wrote this rule using "and with binding":
> 
>  
> 
> rule "ClearUnknownDevice"
> 
>       when
> 
>             e : ( TestFact( field1 !="f1") && TestFact( field1 != "f2")
> )
> 
>       then
> 
>             retract( e );
> 
> end
> 
>  
> 
> I got 2 compilation error:
> 
> unknown:8:6 mismatched token: [EMAIL PROTECTED],133:133='(',<21>,8:6]; 
> expecting type
> ID
> 
> unknown:8:76 Unexpected token ')'
> 
>  
> 
> perhaps "and with binding" is not supported yet?
> 
>  
> 
> thanks.
> 
> matteo,.
> 

Try this:

rule "ClearUnknownDevice"

      when

            e : TestFact( field1 !="f1") && TestFact( field1 != "f2")

      then

            retract( e );

end

-- 
Christopher G. Stach II

Reply via email to