<!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>&nbsp;</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>&nbsp;</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>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=890042403-28082007><FONT face=Arial 
color=#0000ff size=2>Thanks</FONT></SPAN></DIV>
<DIV>&nbsp;</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 &amp; no headset required!" 
                              href="http://www.plaxo.com/click_to_call?src=jj_signature&amp;To=5052-8535&amp;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 &amp; no headset required!" 
                              href="http://www.plaxo.com/click_to_call?src=jj_signature&amp;To=9139.7983&amp;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&amp;v0=620798&amp;k0=16779217&amp;v1=620799&amp;k1=1001594622&amp;src=client_sig_212_1_banner_join&amp;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>&nbsp;</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>&nbsp;&nbsp; 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 &lt;<A 
href="mailto:infocft@gmail.com">infocft@gmail.com </A>&gt;:</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>&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( 
  "obtenemos flag " + $v.getFlag() 
  );&nbsp;<BR>&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;<BR>end</P>
  <P><BR>rule "valida Duracion Destino"<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("l");<BR>&nbsp;&nbsp;System.out.println( 
  "obtenemos&nbsp; "&nbsp; + $v.getResultado()); 
  <BR>&nbsp;&nbsp;System.out.println( "obtenemos cantidad seg dos " + 
  $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> 
</BODY></HTML>