<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
h1
        {margin-top:12.0pt;
        margin-right:0in;
        margin-bottom:3.0pt;
        margin-left:0in;
        page-break-after:avoid;
        font-size:16.0pt;
        font-family:Arial;}
h2
        {margin-top:12.0pt;
        margin-right:0in;
        margin-bottom:3.0pt;
        margin-left:0in;
        page-break-after:avoid;
        font-size:14.0pt;
        font-family:Arial;
        font-style:italic;}
h3
        {margin-top:12.0pt;
        margin-right:0in;
        margin-bottom:3.0pt;
        margin-left:0in;
        page-break-after:avoid;
        font-size:13.0pt;
        font-family:Arial;}
p.MsoCaption, li.MsoCaption, div.MsoCaption
        {margin-top:0in;
        margin-right:0in;
        margin-bottom:6.0pt;
        margin-left:0in;
        font-size:10.0pt;
        font-family:"Times New Roman";
        font-weight:bold;}
p.MsoTitle, li.MsoTitle, div.MsoTitle
        {margin-top:12.0pt;
        margin-right:0in;
        margin-bottom:3.0pt;
        margin-left:0in;
        text-align:center;
        font-size:16.0pt;
        font-family:Arial;
        font-weight:bold;}
p.MsoBodyText, li.MsoBodyText, div.MsoBodyText
        {margin-top:0in;
        margin-right:0in;
        margin-bottom:6.0pt;
        margin-left:0in;
        text-indent:.5in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
p.MsoSubtitle, li.MsoSubtitle, div.MsoSubtitle
        {margin-top:0in;
        margin-right:0in;
        margin-bottom:3.0pt;
        margin-left:0in;
        text-align:center;
        font-size:12.0pt;
        font-family:Arial;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p.Code, li.Code, div.Code
        {margin:0in;
        margin-bottom:.0001pt;
        background:#F3F3F3;
        border:none;
        padding:0in;
        font-size:9.0pt;
        font-family:"Courier New";}
span.emailstyle17
        {font-family:Arial;
        color:navy;}
span.EmailStyle23
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I&#8217;ve had problems with decision
tables with anything that varied outside the type of getter and setter normally
used. To do what you did, I set it up as:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width=436
 style='width:327.0pt;margin-left:-.65pt;border-collapse:collapse'>
 <tr height=17 style='height:12.75pt'>
  <td width=167 nowrap height=17 valign=bottom bgcolor=silver style='width:
  125.0pt;border:solid black 1.0pt;background:silver;padding:0in 5.4pt 0in 5.4pt;
  height:12.75pt'>
  <p class=MsoNormal><b><font size=1 face=Tahoma><span style='font-size:7.0pt;
  font-family:Tahoma;font-weight:bold'>&nbsp;</span></font></b><o:p></o:p></p>
  </td>
  <td width=113 nowrap height=17 valign=bottom bgcolor="#FFCC99"
  style='width:85.0pt;border:solid black 1.0pt;border-left:none;background:
  #FFCC99;padding:0in 5.4pt 0in 5.4pt;height:12.75pt'>
  <p class=MsoNormal><font size=1 face=Tahoma><span style='font-size:7.0pt;
  font-family:Tahoma'>CONDITION</span></font><o:p></o:p></p>
  </td>
  <td width=156 nowrap height=17 valign=bottom bgcolor="#FFCC99"
  style='width:117.0pt;border:solid black 1.0pt;border-left:none;background:
  #FFCC99;padding:0in 5.4pt 0in 5.4pt;height:12.75pt'>
  <p class=MsoNormal><font size=1 face=Tahoma><span style='font-size:7.0pt;
  font-family:Tahoma'>ACTION</span></font><o:p></o:p></p>
  </td>
 </tr>
 <tr height=18 style='height:13.5pt'>
  <td width=167 nowrap height=18 valign=bottom bgcolor=silver style='width:
  125.0pt;border:solid black 1.0pt;border-top:none;background:silver;
  padding:0in 5.4pt 0in 5.4pt;height:13.5pt'>
  <p class=MsoNormal><b><font size=1 face=Tahoma><span style='font-size:7.0pt;
  font-family:Tahoma;font-weight:bold'>&nbsp;</span></font></b><o:p></o:p></p>
  </td>
  <td width=269 nowrap colspan=2 height=18 valign=bottom bgcolor="#FFCC99"
  style='width:202.0pt;border-top:none;border-left:none;border-bottom:solid black 1.0pt;
  border-right:solid black 1.0pt;background:#FFCC99;padding:0in 5.4pt 0in 5.4pt;
  height:13.5pt'>
  <p class=MsoNormal><font size=1 face=Tahoma><span style='font-size:7.0pt;
  font-family:Tahoma'>Product</span></font><o:p></o:p></p>
  </td>
 </tr>
 <tr height=17 style='height:12.75pt'>
  <td width=167 height=17 valign=bottom bgcolor=silver style='width:125.0pt;
  border-top:none;border-left:solid black 1.0pt;border-bottom:none;border-right:
  solid black 1.0pt;background:silver;padding:0in 5.4pt 0in 5.4pt;height:12.75pt'>
  <p class=MsoNormal><b><font size=1 face=Tahoma><span style='font-size:7.0pt;
  font-family:Tahoma;font-weight:bold'>&nbsp;</span></font></b><o:p></o:p></p>
  </td>
  <td width=113 height=17 valign=bottom bgcolor="#FFCC99" style='width:85.0pt;
  border:none;border-right:solid black 1.0pt;background:#FFCC99;padding:0in 5.4pt 0in 5.4pt;
  height:12.75pt'>
  <p class=MsoNormal><font size=1 face=Tahoma><span style='font-size:7.0pt;
  font-family:Tahoma'>brand</span></font><o:p></o:p></p>
  </td>
  <td width=156 height=17 valign=bottom bgcolor="#FFCC99" style='width:117.0pt;
  border:none;border-right:solid black 1.0pt;background:#FFCC99;padding:0in 5.4pt 0in 5.4pt;
  height:12.75pt'>
  <p class=MsoNormal><font size=2 color=black face="Courier New"><span
  style='font-size:10.0pt;font-family:"Courier New";color:black'>setGoodBrand($param);</span></font><o:p></o:p></p>
  </td>
 </tr>
 <tr height=38 style='height:28.5pt'>
  <td width=167 height=38 bgcolor="#CCFFCC" style='width:125.0pt;border:solid black 1.0pt;
  border-bottom:none;background:#CCFFCC;padding:0in 5.4pt 0in 5.4pt;height:
  28.5pt'>
  <p class=MsoNormal align=center style='text-align:center'><b><font size=1
  face=Tahoma><span style='font-size:7.0pt;font-family:Tahoma;font-weight:bold'>Cases</span></font></b><o:p></o:p></p>
  </td>
  <td width=113 height=38 valign=bottom bgcolor="#CCFFFF" style='width:85.0pt;
  background:#CCFFFF;padding:0in 5.4pt 0in 5.4pt;height:28.5pt'>
  <p class=MsoNormal><font size=1 face=Tahoma><span style='font-size:7.0pt;
  font-family:Tahoma'>hoover match case</span></font><o:p></o:p></p>
  </td>
  <td width=156 height=38 valign=bottom bgcolor="#FFFF99" style='width:117.0pt;
  background:#FFFF99;padding:0in 5.4pt 0in 5.4pt;height:28.5pt'>
  <p class=MsoNormal><font size=1 face=Tahoma><span style='font-size:7.0pt;
  font-family:Tahoma'>&nbsp;TRUE</span></font><o:p></o:p></p>
  </td>
 </tr>
 <tr height=29 style='height:21.75pt'>
  <td width=167 height=29 style='width:125.0pt;padding:0in 5.4pt 0in 5.4pt;
  height:21.75pt'>
  <p class=MsoNormal align=center style='text-align:center'><b><font size=1
  color=black face=Tahoma><span style='font-size:7.0pt;font-family:Tahoma;
  color:black;font-weight:bold'>Brand Check</span></font></b><o:p></o:p></p>
  </td>
  <td width=113 nowrap height=29 style='width:85.0pt;padding:0in 5.4pt 0in 5.4pt;
  height:21.75pt'>
  <p class=MsoNormal align=center style='text-align:center'><font size=1
  face=Tahoma><span style='font-size:7.0pt;font-family:Tahoma'>hoover</span></font><o:p></o:p></p>
  </td>
  <td width=156 nowrap height=29 style='width:117.0pt;padding:0in 5.4pt 0in 5.4pt;
  height:21.75pt'>
  <p class=MsoNormal align=center style='text-align:center'><b><font size=1
  face=Tahoma><span style='font-size:7.0pt;font-family:Tahoma;font-weight:bold'>&nbsp;</span></font></b><o:p></o:p></p>
  </td>
 </tr>
</table>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Could be a case-sensitive thing too.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
rules-users-bounces@lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] <b><span style='font-weight:bold'>On
Behalf Of </span></b>Costello, Robert<br>
<b><span style='font-weight:bold'>Sent:</span></b> Monday, January 12, 2009
5:32 PM<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">Rules
 Users List</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: [rules-users] How to
access data after rule fires</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I tried that and it returned false, which
doesn&#8217;t make sense to me since the rule firing is to set the value to
true, and in the execution the rule does fire. &nbsp;</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font><o:p></o:p></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
StatefulKnowledgeSession session = kbase.newStatefulKnowledgeSession();</span></font><o:p></o:p></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Product p = </span></font><b><font
size=2 color="#7f0055" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#7F0055;font-weight:bold'>new</span></font></b><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:black'> Product();</span></font><o:p></o:p></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; p.setBrand(</span></font><font
size=2 color="#2a00ff" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#2A00FF'>&quot;hoover&quot;</span></font><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:black'>);</span></font><o:p></o:p></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style='background:
silver'>session</span>.insert( p );</span></font><o:p></o:p></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font><b><font
size=2 color="#7f0055" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#7F0055;font-weight:bold'>int</span></font></b><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:black'> u = <span style='background:silver'>session</span>.fireAllRules();</span></font><o:p></o:p></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font><o:p></o:p></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.</span></font><i><font
size=2 color="#0000c0" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#0000C0;font-style:italic'>out</span></font></i><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:black'>.println(u + </span></font><font size=2
color="#2a00ff" face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:#2A00FF'>&quot; many rules fired&quot;</span></font><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:black'>);</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
System.</span></font><i><font size=2 color="#0000c0" face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:#0000C0;font-style:
italic'>out</span></font></i><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>.println(</span></font><font
size=2 color="#2a00ff" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#2A00FF'>&quot;is brand good? &quot;</span></font><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:black'> + p.isGoodBrand());</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>Here&#8217;s a
snippet of the rule (decision table)</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;</span></font><o:p></o:p></p>

<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width=436
 style='width:327.0pt;margin-left:-.65pt;border-collapse:collapse'>
 <tr height=17 style='height:12.75pt'>
  <td width=167 nowrap height=17 valign=bottom bgcolor=silver style='width:
  125.0pt;border:solid black 1.0pt;background:silver;padding:0in 5.4pt 0in 5.4pt;
  height:12.75pt'>
  <p class=MsoNormal><b><font size=1 face=Tahoma><span style='font-size:7.0pt;
  font-family:Tahoma;font-weight:bold'>&nbsp;</span></font></b><o:p></o:p></p>
  </td>
  <td width=113 nowrap height=17 valign=bottom bgcolor="#FFCC99"
  style='width:85.0pt;border:solid black 1.0pt;border-left:none;background:
  #FFCC99;padding:0in 5.4pt 0in 5.4pt;height:12.75pt'>
  <p class=MsoNormal><font size=1 face=Tahoma><span style='font-size:7.0pt;
  font-family:Tahoma'>CONDITION</span></font><o:p></o:p></p>
  </td>
  <td width=156 nowrap height=17 valign=bottom bgcolor="#FFCC99"
  style='width:117.0pt;border:solid black 1.0pt;border-left:none;background:
  #FFCC99;padding:0in 5.4pt 0in 5.4pt;height:12.75pt'>
  <p class=MsoNormal><font size=1 face=Tahoma><span style='font-size:7.0pt;
  font-family:Tahoma'>ACTION</span></font><o:p></o:p></p>
  </td>
 </tr>
 <tr height=18 style='height:13.5pt'>
  <td width=167 nowrap height=18 valign=bottom bgcolor=silver style='width:
  125.0pt;border:solid black 1.0pt;border-top:none;background:silver;
  padding:0in 5.4pt 0in 5.4pt;height:13.5pt'>
  <p class=MsoNormal><b><font size=1 face=Tahoma><span style='font-size:7.0pt;
  font-family:Tahoma;font-weight:bold'>&nbsp;</span></font></b><o:p></o:p></p>
  </td>
  <td width=269 nowrap colspan=2 height=18 valign=bottom bgcolor="#FFCC99"
  style='width:202.0pt;border-top:none;border-left:none;border-bottom:solid black 1.0pt;
  border-right:solid black 1.0pt;background:#FFCC99;padding:0in 5.4pt 0in 5.4pt;
  height:13.5pt'>
  <p class=MsoNormal><font size=1 face=Tahoma><span style='font-size:7.0pt;
  font-family:Tahoma'>Product</span></font><o:p></o:p></p>
  </td>
 </tr>
 <tr height=17 style='height:12.75pt'>
  <td width=167 height=17 valign=bottom bgcolor=silver style='width:125.0pt;
  border-top:none;border-left:solid black 1.0pt;border-bottom:none;border-right:
  solid black 1.0pt;background:silver;padding:0in 5.4pt 0in 5.4pt;height:12.75pt'>
  <p class=MsoNormal><b><font size=1 face=Tahoma><span style='font-size:7.0pt;
  font-family:Tahoma;font-weight:bold'>&nbsp;</span></font></b><o:p></o:p></p>
  </td>
  <td width=113 height=17 valign=bottom bgcolor="#FFCC99" style='width:85.0pt;
  border:none;border-right:solid black 1.0pt;background:#FFCC99;padding:0in 5.4pt 0in 5.4pt;
  height:12.75pt'>
  <p class=MsoNormal><font size=1 face=Tahoma><span style='font-size:7.0pt;
  font-family:Tahoma'>brand</span></font><o:p></o:p></p>
  </td>
  <td width=156 height=17 valign=bottom bgcolor="#FFCC99" style='width:117.0pt;
  border:none;border-right:solid black 1.0pt;background:#FFCC99;padding:0in 5.4pt 0in 5.4pt;
  height:12.75pt'>
  <p class=MsoNormal><font size=2 color=black face="Courier New"><span
  style='font-size:10.0pt;font-family:"Courier New";color:black'>setGoodBrand(true);</span></font><o:p></o:p></p>
  </td>
 </tr>
 <tr height=38 style='height:28.5pt'>
  <td width=167 height=38 bgcolor="#CCFFCC" style='width:125.0pt;border:solid black 1.0pt;
  border-bottom:none;background:#CCFFCC;padding:0in 5.4pt 0in 5.4pt;height:
  28.5pt'>
  <p class=MsoNormal align=center style='text-align:center'><b><font size=1
  face=Tahoma><span style='font-size:7.0pt;font-family:Tahoma;font-weight:bold'>Cases</span></font></b><o:p></o:p></p>
  </td>
  <td width=113 height=38 valign=bottom bgcolor="#CCFFFF" style='width:85.0pt;
  background:#CCFFFF;padding:0in 5.4pt 0in 5.4pt;height:28.5pt'>
  <p class=MsoNormal><font size=1 face=Tahoma><span style='font-size:7.0pt;
  font-family:Tahoma'>hoover match case</span></font><o:p></o:p></p>
  </td>
  <td width=156 height=38 valign=bottom bgcolor="#FFFF99" style='width:117.0pt;
  background:#FFFF99;padding:0in 5.4pt 0in 5.4pt;height:28.5pt'>
  <p class=MsoNormal><font size=1 face=Tahoma><span style='font-size:7.0pt;
  font-family:Tahoma'>&nbsp;</span></font><o:p></o:p></p>
  </td>
 </tr>
 <tr height=29 style='height:21.75pt'>
  <td width=167 height=29 style='width:125.0pt;padding:0in 5.4pt 0in 5.4pt;
  height:21.75pt'>
  <p class=MsoNormal align=center style='text-align:center'><b><font size=1
  color=black face=Tahoma><span style='font-size:7.0pt;font-family:Tahoma;
  color:black;font-weight:bold'>Brand Check</span></font></b><o:p></o:p></p>
  </td>
  <td width=113 nowrap height=29 style='width:85.0pt;padding:0in 5.4pt 0in 5.4pt;
  height:21.75pt'>
  <p class=MsoNormal align=center style='text-align:center'><font size=1
  face=Tahoma><span style='font-size:7.0pt;font-family:Tahoma'>hoover</span></font><o:p></o:p></p>
  </td>
  <td width=156 nowrap height=29 style='width:117.0pt;padding:0in 5.4pt 0in 5.4pt;
  height:21.75pt'>
  <p class=MsoNormal align=center style='text-align:center'><b><font size=1
  face=Tahoma><span style='font-size:7.0pt;font-family:Tahoma;font-weight:bold'>&nbsp;</span></font></b><o:p></o:p></p>
  </td>
 </tr>
</table>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>And the console returns:</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font><o:p></o:p></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>1 many rules fired</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>is brand good?
false</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font><o:p></o:p></p>

<div>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Robert Costello</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Lead Systems Engineer</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>IMA Performance</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>E3-&nbsp;279A</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>847.286.0910</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'>&nbsp;</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'>&nbsp;</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b>
rules-users-bounces@lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] <b><span style='font-weight:bold'>On
Behalf Of </span></b>Edson Tirelli<br>
<b><span style='font-weight:bold'>Sent:</span></b> Monday, January 12, 2009
4:16 PM<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">Rules
 Users List</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [rules-users] How to
access data after rule fires</span></font><o:p></o:p></p>

<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:
12.0pt;margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><br>
&nbsp;&nbsp; Can't you keep the reference to your object while firing the
rules?<br>
<br>
MyObject x = ...<br>
ksession.insert( x );<br>
ksession.fireAllRules();<br>
boolean result = x.getBooleanAttribute();<br>
<br>
&nbsp;&nbsp;&nbsp; []s<br>
&nbsp;&nbsp;&nbsp; Edson<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>2009/1/12 Costello, Robert &lt;<a
href="mailto:rcost10@searshc.com">rcost10@searshc.com</a>&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>So, how do I access data after the rules fire?<br>
<br>
If one has a rule which modifies a field on an object (a boolean, for<br>
example), and you want to return the object after the rules are<br>
complete, how do you do it?<br>
<br>
I tried this using a StatefulKnowledgeSession, getting an object<br>
collection after the rules fire, but I don't see that this works.<br>
<br>
Also googled the heck out of this and looked in all the documentation.<br>
I must be missing something, because the docs generally are pretty good.<br>
<br>
<br>
Any hints?<br>
<br>
Thanks in advance,<br>
<br>
Robert Costello<br>
<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><o:p></o:p></span></font></p>

</div>

<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><br>
<br clear=all>
<br>
-- <br>
&nbsp;Edson Tirelli<br>
&nbsp;JBoss Drools Core Development<br>
&nbsp;JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><o:p></o:p></span></font></p>

</div>

</body>

</html>