Hi,
I wanted to know if it is possible to support the use
of globals in column constraint, like this:
global java.lang.String value
rule "Sample rule"
when
# this does not work, because drools expects
# value to be a declaration
MyBean( prop == value)
then
System.out.println("fired");
end
The motivation is to have a kind of "parameterized"
rule, where parameters will be provided as globals.
I'm working around this by doing:
Exception( m : message -> (m == param) )
but this is slower, right?
Thanks,
Yuesong
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com