<br>&nbsp;&nbsp; You must call update() on your fact if you want the engine to &quot;know&quot; about your change.<br><br><div><span class="gmail_quote">2007/8/27, grupo cft ing sostware &lt;<a href="mailto:infocft@gmail.com">infocft@gmail.com
</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br clear="all">
<p>hi list, Y have the next problem in the rules: </p>
<p>rule &quot;Valida Duracion nula&quot;</p>
<p>&nbsp;when<br>&nbsp;&nbsp;$v : Validaciones(flag == 0)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp;then <br>&nbsp;&nbsp;<br>&nbsp;&nbsp;$v.setFlag(1);<br>&nbsp;&nbsp;System.out.println( &quot;obtenemos flag &quot; + $v.getFlag() );&nbsp;<br>&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;<br>end</p>
<p><br>rule &quot;valida Duracion Destino&quot;<br>&nbsp;<br>&nbsp;when<br>&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp; $v: Validaciones(flag == 0)<br>&nbsp;&nbsp;<br>&nbsp;&nbsp;<br>&nbsp;then <br>&nbsp;&nbsp;$v.setResultado(&quot;l&quot;);<br>&nbsp;&nbsp;System.out.println( &quot;obtenemos&nbsp; &quot;&nbsp; + $v.getResultado());
<br>&nbsp;&nbsp;System.out.println( &quot;obtenemos cantidad seg dos &quot; + $v.getFlag() );<br>&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;<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&nbsp; executed, why?</p>
<div>thanks.</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<br>_______________________________________________<br>rules-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">
https://lists.jboss.org/mailman/listinfo/rules-users</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>&nbsp;&nbsp;Edson Tirelli<br>&nbsp;&nbsp;Software Engineer - JBoss Rules Core Developer<br>&nbsp;&nbsp;Office: +55 11 3529-6000<br>&nbsp;&nbsp;Mobile: +55 11 9287-5646
<br>&nbsp;&nbsp;JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a>