You must call update() on your fact if you want the engine to "know"
about your change.
2007/8/27, grupo cft ing sostware <[EMAIL PROTECTED]>:
>
>
> hi list, Y have the next problem in the rules:
>
> rule "Valida Duracion nula"
>
> when
> $v : Validaciones(flag == 0)
>
> then
>
> $v.setFlag(1);
> System.out.println( "obtenemos flag " + $v.getFlag() );
>
>
> end
>
>
> rule "valida Duracion Destino"
>
> when
>
> $v: Validaciones(flag == 0)
>
>
> then
> $v.setResultado("l");
> System.out.println( "obtenemos " + $v.getResultado());
> System.out.println( "obtenemos cantidad seg dos " + $v.getFlag() );
>
>
> end
>
> the problem is:
>
> the flag variable values begin in 0 (in the class in java), in the first
> rules the change a 1 (setFlag) and
> Should not execute rule seconds her, But it is executed, why?
> thanks.
>
>
>
> _______________________________________________
> rules-users mailing list
> [email protected]
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
--
Edson Tirelli
Software Engineer - JBoss Rules Core Developer
Office: +55 11 3529-6000
Mobile: +55 11 9287-5646
JBoss, a division of Red Hat @ www.jboss.com
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users