<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16525" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=890042403-28082007><FONT face=Arial
color=#0000ff size=2>Hi,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=890042403-28082007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=890042403-28082007><FONT face=Arial
color=#0000ff size=2>I might be missing something, but in a StateLessSession I
am able to set globlas, but not able to getGlobals.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=890042403-28082007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=890042403-28082007><FONT face=Arial
color=#0000ff size=2>Is there any particular reason for
that?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=890042403-28082007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=890042403-28082007><FONT face=Arial
color=#0000ff size=2>Thanks</FONT></SPAN></DIV>
<DIV> </DIV>
<STYLE>
<!--
A.psl {
        TEXT-DECORATION:none; COLOR: #4e81c4
}
A:hover {
        TEXT-DECORATION: underline
}
A.psl:hover {
        COLOR: #999999
}
.noro {
        FONT-SIZE: 8pt; COLOR: #4e81c4; FONT-FAMILY: Verdana,Arial,fixed
}
.tiny {
        FONT-SIZE: 1pt
}
.logotext {
        TEXT-DECORATION: none; FONT-SIZE: 10pt; COLOR: #ffffff; FONT-FAMILY: Verdana,Arial,fixed
}
A.brand {
        FONT-SIZE: 8pt; COLOR: #ffffff; FONT-FAMILY: Verdana,Arial,fixed; TEXT-DECORATION: underline
}
-->
</STYLE>
<TABLE cellSpacing=0 cellPadding=0 width=600 border=0>
<TBODY>
<TR>
<TD>
<TABLE height=80 cellSpacing=0 cellPadding=0 width=600 align=right
border=0>
<TBODY>
<TR>
<TD class=tiny>
<TABLE
style="BORDER-RIGHT: #666666 1px solid; BORDER-TOP: #666666 1px solid; BORDER-LEFT: #666666 1px solid; BORDER-BOTTOM: #666666 1px solid"
height="100%" cellSpacing=0 width=600>
<TBODY>
<TR bgColor=#4e81c4>
<TD class=tiny width="100%" height=1>
<TABLE cellSpacing=0 cellPadding=1 width="100%" border=0>
<TBODY>
<TR>
<TD class=logotext style="PADDING-LEFT: 5px"><A
class=logotext href="http://www.auster.com.br/"
target=_blank><IMG src="cid:890042403@28082007-08A2"
border=0></A></TD>
<TD class=noro
style="PADDING-RIGHT: 5px; FONT-SIZE: 7pt; COLOR: #ffffff"
align=right><A class=psl style="COLOR: #ffffff"
href="http://www.auster.com.br/" target=_blank>Solution
is our Business</A></TD></TR></TBODY></TABLE></TD>
<TD class=tiny></TD></TR>
<TR>
<TD colSpan=2>
<TABLE height="100%" cellSpacing=2 width="100%" align=right
border=0>
<TBODY>
<TR style="PADDING-BOTTOM: 4px" height=1>
<TD class=noro style="PADDING-LEFT: 4px"
vAlign=top><B>Marcos Tengelmann</B><BR><I>Relações
Comerciais</I> </TD>
<TD class=noro style="PADDING-RIGHT: 4px" vAlign=top
align=right><B>Auster Solutions do Brasil</B><BR>Avenida
Ibirapuera 2120, cj 224 </TD></TR>
<TR height=1>
<TD class=noro
style="PADDING-LEFT: 4px; PADDING-BOTTOM: 4px"
vAlign=bottom><A class=psl
href="mailto:marcos.tengelmann@auster.com.br"
target=_blank>marcos.tengelmann@auster.com.br</A> </TD>
<TD class=noro
style="PADDING-RIGHT: 4px; PADDING-BOTTOM: 4px"
vAlign=bottom align=right>
<TABLE cellSpacing=0 align=right border=0>
<TBODY>
<TR>
<TD class=noro noWrap align=right>tel: <BR>fax:
<BR>mobile: <BR>Skype ID:</TD>
<TD class=noro style="PADDING-LEFT: 4px" noWrap
align=right><A class=psl
title="Click to call. Cheap rates & no headset required!"
href="http://www.plaxo.com/click_to_call?src=jj_signature&To=5052-8535&Email=marcos.tengelmann@auster.com.br"
target=_blank>5052-8535 <IMG
src="cid:890042403@28082007-08A9" align=absMiddle
border=0></A><BR>5052-6711<BR><A class=psl
title="Click to call. Cheap rates & no headset required!"
href="http://www.plaxo.com/click_to_call?src=jj_signature&To=9139.7983&Email=marcos.tengelmann@auster.com.br"
target=_blank>9139.7983 <IMG
src="cid:890042403@28082007-08A9" align=absMiddle
border=0></A><BR>mtengelmann
</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD>
<TD></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD class=tiny bgColor=#4e81c4 colSpan=2>
<TABLE cellSpacing=0 cellPadding=3 width="100%">
<TBODY>
<TR>
<TD align=left><A class=brand
href="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"
target=_blank>Want to always have my latest info?</A></TD>
<TD align=right><A class=brand
href="http://www.plaxo.com/signature?src=client_sig_212_1_banner_sig"
target=_blank>Want a signature like
this?</A></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<DIV> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> rules-users-bounces@lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] <B>On Behalf Of </B>Edson
Tirelli<BR><B>Sent:</B> segunda-feira, 27 de agosto de 2007 23:54<BR><B>To:</B>
Rules Users List<BR><B>Subject:</B> Re: [rules-users] Problem in the set
variable in the rules<BR></FONT><BR></DIV>
<DIV></DIV><BR> You must call update() on your fact if you want the
engine to "know" about your change.<BR><BR>
<DIV><SPAN class=gmail_quote>2007/8/27, grupo cft ing sostware <<A
href="mailto:infocft@gmail.com">infocft@gmail.com </A>>:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid"><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><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> Edson Tirelli<BR> Software Engineer
- JBoss Rules Core Developer<BR> Office: +55 11
3529-6000<BR> Mobile: +55 11 9287-5646 <BR> JBoss, a
division of Red Hat @ <A href="http://www.jboss.com">www.jboss.com</A>
</BODY></HTML>