<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" 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"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR><!--[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 name="PersonName" 
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><!--[if !mso]>
<STYLE>st1\:* {
        BEHAVIOR: url(#default#ieooui)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
        font-family: Wingdings;
}
@font-face {
        font-family: Tahoma;
}
@page Section1 {size: 612.0pt 792.0pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 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; mso-style-type: personal
}
SPAN.EmailStyle18 {
        COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal-reply
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV dir=ltr align=left><SPAN class=325300310-23022007><FONT face=Arial 
color=#0000ff size=2>Hi,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=325300310-23022007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=325300310-23022007><FONT face=Arial 
color=#0000ff size=2>3.0.5 documentation states:- </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=325300310-23022007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=325300310-23022007>You can access fields 
either by using the bean-name convention (so "getType" can be accessed as 
"type"). For example, refering to our Cheese class, the following : Cheese(type 
== ...) uses the getType() method on the a cheese instance. You can also access 
non getter methods, like "toString()" on the Object for instance (in which case, 
you do Cheese(toString == ..) - you use the full name of the method with correct 
capitalisation, but not brackets).</SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=325300310-23022007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=325300310-23022007><FONT face=Arial 
color=#0000ff size=2>You're example <FONT face="Courier New">Map(name == 
'myName')</FONT> only checked for the existence too.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=325300310-23022007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=325300310-23022007><FONT face=Arial 
color=#0000ff size=2>Sorry if I misunderstood your 
requirement.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=325300310-23022007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=325300310-23022007><FONT face=Arial 
color=#0000ff size=2>Cheers,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=325300310-23022007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=325300310-23022007><FONT face=Arial 
color=#0000ff size=2>Mike</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=325300310-23022007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</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>Olenin, 
  Vladimir (MOH)<BR><B>Sent:</B> 22 February 2007 18:59<BR><B>To:</B> Rules 
  Users List<BR><B>Subject:</B> RE: [rules-users] talking about new 
  features...<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV class=Section1>
  <DIV>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">This will just check 
  if MyMapSubClass contains the entry (which I think would not work anyways, 
  since &#8216;entrySet&#8217; does not comply to POJO spec).</SPAN></FONT><FONT 
  color=navy><SPAN style="COLOR: navy"><o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" color=navy size=3><SPAN 
  style="FONT-SIZE: 12pt; COLOR: navy">&nbsp;</SPAN></FONT><o:p></o:p></P></DIV>
  <DIV>
  <DIV class=MsoNormal style="MARGIN-LEFT: 36pt; TEXT-ALIGN: center" 
  align=center><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">
  <HR tabIndex=-1 align=center width="100%" SIZE=2>
  </SPAN></FONT></DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 36pt"><B><FONT face=Tahoma size=2><SPAN 
  style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT 
  face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; 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>Anstis, Michael 
  (M.)<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> 22 February 2007 
  12:14<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] talking about 
  new features...</SPAN></FONT><o:p></o:p></P></DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face="Times New Roman" 
  size=3><SPAN style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial color=blue 
  size=2><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">Can this 
  not be achieved by using a Map's entrySet 
  property?</SPAN></FONT><o:p></o:p></P>
  <P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face="Times New Roman" 
  size=3><SPAN style="FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial color=blue 
  size=2><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">$o : 
  MyMapSubClass( entrySet contains 'myName' );</SPAN></FONT><o:p></o:p></P>
  <BLOCKQUOTE style="MARGIN-TOP: 5pt; MARGIN-BOTTOM: 5pt; MARGIN-RIGHT: 0cm">
    <P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face="Times New Roman" 
    size=3><SPAN style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
    <DIV class=MsoNormal style="MARGIN-LEFT: 36pt; TEXT-ALIGN: center" 
    align=center><FONT face="Times New Roman" size=3><SPAN 
    style="FONT-SIZE: 12pt">
    <HR tabIndex=-1 align=center width="100%" SIZE=2>
    </SPAN></FONT></DIV>
    <P class=MsoNormal 
    style="MARGIN-BOTTOM: 12pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm; mso-margin-top-alt: 0cm"><B><FONT 
    face=Tahoma size=2><SPAN 
    style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT 
    face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; 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>Olenin, Vladimir 
    (MOH)<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> 22 February 
    2007 16:17<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> [rules-users] talking about 
    new features...</SPAN></FONT><o:p></o:p></P>
    <P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial size=2><SPAN 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi,<o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial size=2><SPAN 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
    <P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial size=2><SPAN 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Talking about new features to be 
    included in the new release, I think the most compelling might be the 
    ability to use Maps as facts (ie, from the point of view of a complete 
    DROOLS newbie). Technically POJO is a Map with some restricted functionality 
    (can&#8217;t count properties, check for property existence, etc). Is it really a 
    big change? The rule formulation will remain the same from what I understand 
    and the LHS like<o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial size=2><SPAN 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
    <P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial size=2><SPAN 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Map(name == &#8216;myName&#8217;)<o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial size=2><SPAN 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
    <P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial size=2><SPAN 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Will simply mean any map object 
    which has a key &#8216;name&#8217; and value for the key is &#8216;myName&#8217;. The &#8216;type 
    matching&#8217; feature would be kind of less useful in case Map fact is used, but 
    this can probably solved through introducing some default &#8216;type&#8217; key which 
    Map object should have and in a very simplistic implementation just include 
    &#8216;type&#8217; as a constraint.<o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial size=2><SPAN 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
    <P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial size=2><SPAN 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Another alternative (which might 
    probably be more &#8216;backward compatible&#8217; with existing implementation) is to 
    dynamically generate POJOs from Map definition. &#8216;type&#8217; or &#8216;class&#8217; key will 
    correspond to a full qualified class name, all other keys found in the map &#8211; 
    POJOs properties. Or &#8216;type&#8217; can stay &#8216;anonymous&#8217; &#8211; might be useful in some 
    cases as well&#8230;.<o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial size=2><SPAN 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
    <P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial size=2><SPAN 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">The &#8216;weakly defined&#8217; fact 
    objects might be quite useful in some cases, eg when rules &#8216;cross cut&#8217; 
    business domain. Kind of &#8216;dynamic rules&#8217; </SPAN></FONT><FONT face=Wingdings 
    size=2><SPAN 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Wingdings">J</SPAN></FONT><FONT 
    face=Arial size=2><SPAN 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">.<o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial size=2><SPAN 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
    <P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial size=2><SPAN 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
    <P class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial size=2><SPAN 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Vlad<o:p></o:p></SPAN></FONT></P></BLOCKQUOTE></DIV></BLOCKQUOTE></BODY></HTML>