[rules-users] Globals

Marcos Tengelmann marcos.tengelmann at auster.com.br
Mon Aug 27 23:25:42 EDT 2007


Hi,
 
I might be missing something, but in a StateLessSession I am able to set
globlas, but not able to getGlobals.
 
Is there any particular reason for that?
 
Thanks
 



 <http://www.auster.com.br/> 	 Solution  <http://www.auster.com.br/> is
our Business	
	

Marcos Tengelmann
Relações Comerciais 	Auster Solutions do Brasil
Avenida Ibirapuera 2120, cj 224 	
marcos.tengelmann at auster.com.br 	
tel: 
fax: 
mobile: 
Skype ID:	 5052-8535
<http://www.plaxo.com/click_to_call?src=jj_signature&To=5052-8535&Email=marc
os.tengelmann at auster.com.br> 
5052-6711
9139.7983
<http://www.plaxo.com/click_to_call?src=jj_signature&To=9139.7983&Email=marc
os.tengelmann at auster.com.br> 
mtengelmann 	
	

Want to always have my latest info?
<https://www.plaxo.com/add_me?u=21475157331&v0=620798&k0=16779217&v1=620799&
k1=1001594622&src=client_sig_212_1_banner_join&invite=1> 	 Want a
signature like
<http://www.plaxo.com/signature?src=client_sig_212_1_banner_sig> this?	
 

  _____  

From: rules-users-bounces at lists.jboss.org
[mailto:rules-users-bounces at lists.jboss.org] On Behalf Of Edson Tirelli
Sent: segunda-feira, 27 de agosto de 2007 23:54
To: Rules Users List
Subject: Re: [rules-users] Problem in the set variable in the rules



   You must call update() on your fact if you want the engine to "know"
about your change.


2007/8/27, grupo cft ing sostware <infocft at gmail.com
<mailto:infocft at gmail.com> >: 


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
rules-users at lists.jboss.org
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 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070828/a880dfd2/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 3074 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20070828/a880dfd2/attachment.jpe 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 345 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20070828/a880dfd2/attachment.gif 


More information about the rules-users mailing list