[rules-users] Problem with ternary and mvel

vdelbart delbart.v at mipih.fr
Fri Dec 21 05:21:36 EST 2007


Hi,

I have a problem with this simplified rule (mvel + ternary) :

rule "Your Third Rule"
	dialect "mvel"
	when
		v:Venue()
	then 
		v.activite = (v.um == null ? "it's null" : "it's not null");
end

before the execution I have this fact :
Venue(Type Hosp: null, activite: null, activite Hosp: null, um: null,
SousVenue: null)

when I execute the rule, I have :
Venue(Type Hosp: null, activite: true, activite Hosp: null, um: null,
SousVenue: null)

Of course with dialect = java it works but I need to use mvel dialect for
other reason in all of my rules.

maybe somebody have a workaround for this ?

Thanks,

Vincent


-- 
View this message in context: http://www.nabble.com/Problem-with-ternary-and-mvel-tp14452888p14452888.html
Sent from the drools - user mailing list archive at Nabble.com.




More information about the rules-users mailing list