<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3132" name=GENERATOR>
<STYLE>@font-face {
        font-family: Trebuchet MS;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        COLOR: windowtext; FONT-FAMILY: Arial
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV dir=ltr align=left><SPAN class=889243307-07042008><FONT face=Arial
color=#0000ff size=2>Each fact inserted into working memory will be checked
against each rule pattern.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=889243307-07042008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=889243307-07042008><FONT face=Arial
color=#0000ff size=2><STRONG><EM>Java</EM></STRONG></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=889243307-07042008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=889243307-07042008><FONT face=Arial
color=#0000ff size=2>wm.insert(pto1);</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=889243307-07042008><FONT face=Arial
color=#0000ff size=2>wm.insert(pto2);</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=889243307-07042008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=889243307-07042008><FONT face=Arial
color=#0000ff size=2><STRONG><EM>DRL</EM></STRONG></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=889243307-07042008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=889243307-07042008><FONT face=Arial
color=#0000ff size=2>rule "smurf"</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=889243307-07042008> <FONT
face=Arial color=#0000ff size=2>when</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN
class=889243307-07042008> <FONT
face=Arial><FONT color=#0000ff size=2>$p : PersonTO(
)</FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=889243307-07042008> <FONT
face=Arial color=#0000ff size=2>then</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN
class=889243307-07042008> <FONT
face=Arial color=#0000ff size=2>System.out.println("Property = " +
$p.getSomeProperty());</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=889243307-07042008><FONT face=Arial
color=#0000ff size=2>end</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=889243307-07042008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=889243307-07042008><FONT face=Arial
color=#0000ff size=2><STRONG><EM>Output</EM></STRONG></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=889243307-07042008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=889243307-07042008><FONT face=Arial
color=#0000ff size=2>Property = pto1 property</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=889243307-07042008><FONT face=Arial
color=#0000ff size=2>Property = pto2 property</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=889243307-07042008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=889243307-07042008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV><BR>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<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>Saleem
Lakhani<BR><B>Sent:</B> 03 April 2008 15:08<BR><B>To:</B>
rules-users@lists.jboss.org<BR><B>Subject:</B> [rules-users] Simple
question<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi,</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I am having trouble with accessing
two same objects with different data in working memory. When I print the list
of working memory I see two objects:</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face="Trebuchet MS" size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'">Com.model.PersonTO</SPAN></FONT></P>
<P class=MsoNormal><FONT face="Trebuchet MS" size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'">Com.model.PersonTO</SPAN></FONT></P>
<P class=MsoNormal><FONT face="Trebuchet MS" size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face="Trebuchet MS" size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'">But I am not sure how to
access each of them individually e.g; Person object exists = person:
PersonTO()</SPAN></FONT></P>
<P class=MsoNormal><FONT face="Trebuchet MS" size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face="Trebuchet MS" size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'">Please
help.</SPAN></FONT></P>
<P class=MsoNormal><FONT face="Trebuchet MS" size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face="Trebuchet MS" size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'">Saleem
Lakhani</SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"></SPAN></FONT> </P></DIV></BLOCKQUOTE></BODY></HTML>