[rules-users] Matching on instanceof without eval?

Christine christine at christine.nl
Fri May 23 10:59:50 EDT 2008


On Fri, May 23, 2008 15:47, Barry Kaplan wrote:
>
> I would like to match on the class of a field. I know I can use
> "eval(option instanceof OptionInstrument)",

Is what you do like

when option : Option (
       option instanceof OptionInstrument,
       ......
       )
?

why not

when option : OptionInstrument (
       .....
       )
?

Christine




More information about the rules-users mailing list