<br clear="all">
<p>hi list, Y have the next problem in the rules: </p>
<p>rule "Valida Duracion nula"</p>
<p> when<br> $v : Validaciones(flag == 0)<br> <br> then <br> <br> $v.setFlag(1);<br> System.out.println( "obtenemos flag " + $v.getFlag() ); <br> <br> <br>end</p>
<p><br>rule "valida Duracion Destino"<br> <br> when<br> <br> $v: Validaciones(flag == 0)<br> <br> <br> then <br> $v.setResultado("l");<br> System.out.println( "obtenemos " + $v.getResultado());
<br> System.out.println( "obtenemos cantidad seg dos " + $v.getFlag() );<br> <br> <br>end</p>
<p>the problem is:</p>
<p>the flag variable values begin in 0 (in the class in java), in the first rules the change a 1 (setFlag) and<br>Should not execute rule seconds her, But it is executed, why?</p>
<div>thanks.</div>
<div> </div>
<div> </div>