<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
vdelbart wrote:
<blockquote cite="mid:14879687.post@talk.nabble.com" type="cite">
  <pre wrap="">I try in 4.0.4 it doesn't work.

Nobody have an idea ?
  </pre>
</blockquote>
We do not currently allow any imperative code for MVEL, it is disabled.
This is on purpose to enfore declarative rules - call a function to
apply your imperative code.<br>
<blockquote cite="mid:14879687.post@talk.nabble.com" type="cite">
  <pre wrap="">
Thanks,

V.



vdelbart wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">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



    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
</blockquote>
<br>
</body>
</html>