<!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.16587" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I think I got the point....</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>This is the rule (table generated) which sets the 
"upronto" field.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><STRONG>(It&nbsp;should have&nbsp;been fired in a 
previous ruleflow-node)</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV><FONT size=2>
  <P align=left><EM>package com.rules.ConsolidateData;</EM></P>
  <P align=left><EM>#generated from Decision Table</EM></P>
  <P align=left><EM>import com.engine.wrappers.ContractWrapper;</EM></P>
  <P align=left><EM>import com.engine.enums.Pronto;</EM></P>
  <P align=left><EM>#From row number: 13</EM></P>
  <P align=left><EM>rule "Pronto_13"</EM></P>
  <P align=left><EM><STRONG><FONT color=#ff0000>(RULEFLOW GROUP IS 
  MISSING!!!!!)</FONT></STRONG></EM></P>
  <P align=left><EM></EM></P>
  <P align=left><EM>when</EM></P>
  <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
    <P align=left><EM>cw: ContractWrapper(mycontract.serviceDetail.pronto == 
    "Y", mycontract.serviceDetail.pronto == "Y")</EM></P></BLOCKQUOTE>
  <P align=left><EM>then</EM></P>
  <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
    <P align=left><EM>cw.setUpronto(Pronto.Y);</EM></P>
    <P 
    align=left><EM>System.out.println("PS1"+cw.getMycontract().getId());</EM></P></BLOCKQUOTE>
  <P><EM>end</EM></P></FONT></DIV></BLOCKQUOTE>
<DIV><FONT face=Arial size=2>I think I DEFINED "THE RULEFLOW-GROUP" IN THE WRONG 
WAY&nbsp; in the .xls table!!!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><STRONG>So, I think... the </STRONG><EM><FONT 
face="Times New Roman">Pronto_13 </FONT></EM><STRONG>rule has been fired after 
the <EM>ScorePronto </EM>rule.</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I tell you how I defined it....</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>In the same column where I have "Ruleset", "Import" 
and&nbsp;"Variables" I put "RULEFLOW-GROUP" as well...it is as 
follows:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>|Ruleset&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;| ... 
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; |</FONT></DIV>
<DIV><FONT face=Arial 
size=2>|Import&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | ...import ... 
ContractWrapper...|</FONT></DIV>
<DIV><FONT face=Arial 
size=2>|Variables&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;| ... &nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; |</FONT></DIV>
<DIV><FONT face=Arial size=2>|RULEFLOW-GROUP&nbsp;&nbsp; |&nbsp;Scoring 
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp; 
|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;--- 
HERE!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Is it correct?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I thought this is what was meant in <A 
href="http://jira.jboss.com/jira/browse/JBRULES-1077">http://jira.jboss.com/jira/browse/JBRULES-1077</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>In case this were not the problem I really would 
not know what to do.... now I go to sleep... here in rome is quite 
late!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I hope tomorrow to work it out.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thank You for your Help Edson!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Buona notte.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Massi</FONT></DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV>"Edson Tirelli" &lt;<A 
  href="mailto:tirelli@post.com">tirelli@post.com</A>&gt; ha scritto nel 
  messaggio <A 
  href="news:e6dd5ba30802161533m1d6e035cq9e12dd1b148fa71@mail.gmail.com">news:e6dd5ba30802161533m1d6e035cq9e12dd1b148fa71@mail.gmail.com</A>...</DIV><BR>&nbsp;&nbsp; 
  Need to see the full test case to be able to understand if it is a bug or not, 
  because the expression in the LHS is using the ShadowProxy, while the one in 
  the RHS is not... so, it may be a bug or it may not... depends when and how 
  you are setting the upronto field.<BR><BR>&nbsp;&nbsp; []s<BR>&nbsp;&nbsp; 
  Edson<BR><BR><BR>
  <DIV><SPAN class=gmail_quote>2008/2/16, <A 
  href="mailto:mmquelo@gmail.com">mmquelo@gmail.com</A> &lt;<A 
  href="mailto:mmquelo@gmail.com">mmquelo@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">
    <DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>Look at this....</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>I have got a "ContractWrapper" fact inserted 
    into WM.</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>It wraps a "Contract" object and some "enums" 
    fields.</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>One of these fields is "upronto":</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
      <DIV><FONT face=Arial size=2><B><FONT color=#7f0055 size=2>
      <P align=left>public</P></FONT></B></FONT><FONT size=2></FONT><B><FONT 
      color=#7f0055 size=2>class</FONT></B><FONT size=2> ContractWrapper 
      </FONT><B><FONT color=#7f0055 size=2>extends</FONT></B><FONT size=2> 
      BaseOmPersistentWithAssignedId{ 
      <P align=left>Contract </P></FONT><FONT color=#0000c0 
      size=2>mycontract</FONT><FONT size=2>=</FONT><B><FONT color=#7f0055 
      size=2>null</FONT></B><FONT size=2>; 
      <P align=left></P>
      <P align=left>...</P>
      <P align=left></P></FONT><FONT size=2>Pronto </FONT><FONT color=#0000c0 
      size=2>upronto</FONT><FONT size=2> = </FONT><B><FONT color=#7f0055 
      size=2>null</FONT></B><FONT size=2>; 
      <P align=left><STRONG><FONT 
      color=#7f0055>...</FONT></STRONG></P></FONT><FONT size=2>
      <P align=left></P>
      <P align=left><EM>&lt;getters and setters....&gt;</EM></P></FONT><FONT 
      size=2></FONT><FONT size=2>
      <P align=left></P>
      <P align=left></P>
      <P align=left></P>
      <P align=left></P>
      <P>...</P>
      <P>}</P></FONT></DIV></BLOCKQUOTE>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>"upronto" is an insance of a "Pronto" java 
    enum:</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
      <DIV><B><FONT color=#7f0055 size=2>
      <P align=left>public</P></FONT></B><FONT size=2></FONT><B><FONT 
      color=#7f0055 size=2>enum</FONT></B><FONT size=2> Pronto {</FONT><I><FONT 
      color=#0000c0 size=2> 
      <P align=left>N</P></FONT></I><FONT size=2>,</FONT><I><FONT color=#0000c0 
      size=2> 
      <P align=left>UNKNOWN</P></FONT></I><FONT size=2>,</FONT><I><FONT 
      color=#0000c0 size=2> 
      <P align=left>Y</P></FONT></I><FONT size=2>; 
      <P align=left>}</P></FONT></DIV></BLOCKQUOTE>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>"Pronto" can be : (Y, N, UNKNOWN)</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>Here is the rule which reasons over this 
    enum:</FONT></DIV>
    <DIV><FONT face=Arial size=2>(ofcourse I have got a Request into WM as 
    well)</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2><EM>rule "ScorePronto"<BR>dialect 
    "mvel"<BR>ruleflow-group "Scoring"<BR>&nbsp;when<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
    $r:Request( $mc:mainContract != null )<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
    $cw_p:ContractWrapper($c_w_p:mycontract == $mc, eval(upronto != 
    Pronto.Y))</EM></FONT></DIV>
    <DIV><FONT face=Arial 
    size=2><EM>&nbsp;then&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
    System.out.println("Test Result: "+($cw_p.upronto == 
    Pronto.Y))&nbsp;&nbsp;<BR>end</EM></FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>Any guesses for the output???</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>Well....</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT><FONT face=Arial 
    size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2><STRONG>Test Result: true</STRONG></FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>HOW COMES???????????????????</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>I mean ... the test "eval(upronto != Pronto.Y)" 
    returned "true".... It means that the rule</FONT></DIV>
    <DIV><FONT face=Arial size=2>engine sees upronto &lt;&gt; Pronto.Y!, doesn't 
    it??!!!!</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2><STRONG>So... why do I get "upronto == 
    Pronto.Y" in the RHS????</STRONG></FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>What 
    the.........&amp;$%%&amp;()%%$/%£....sorry....but having these</FONT></DIV>
    <DIV><FONT face=Arial size=2>kind of problems during saturday night is not 
    so pleaseant!&nbsp; </FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>T-T</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>I really hope you can help me&nbsp;with a 
    &nbsp;workaround to this issue.</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>Bye</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>Massi</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial 
    size=2></FONT>&nbsp;</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>&nbsp;&nbsp;Edson Tirelli<BR>&nbsp;&nbsp;JBoss Drools 
  Core Development<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> 
  <P>
  <HR>

  <P></P>_______________________________________________<BR>rules-users mailing 
  list<BR>rules-users@lists.jboss.org<BR>https://lists.jboss.org/mailman/listinfo/rules-users<BR></BLOCKQUOTE></BODY></HTML>