<!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.6000.16705" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=018501905-02092008><FONT face=Arial 
color=#0000ff size=2>Hi Canterburry,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=018501905-02092008><FONT face=Arial 
color=#0000ff size=2>You might want to try the following anonymous links of 
subversion instead of the ones, Ed presented below.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=018501905-02092008></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=018501905-02092008><FONT face=Arial 
color=#0000ff size=2><A 
href="https://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/integrationtests/StreamsTest.java">https://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/integrationtests/StreamsTest.java</A></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=018501905-02092008><FONT face=Arial 
color=#0000ff size=2><A 
href="https://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/integrationtests/CepEspTest.java">https://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/integrationtests/CepEspTest.java</A></FONT></SPAN></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff 
size=2></FONT>&nbsp;</DIV>
<DIV align=left>
<DIV align=left><SPAN style="FONT-SIZE: 10pt; COLOR: gray">Prasoon Kumar 
</SPAN></DIV><SPAN class=sg>
<DIV align=left><SPAN style="FONT-SIZE: 10pt; COLOR: gray"><SPAN><SPAN>Technical 
Architect &nbsp;</SPAN> </SPAN></SPAN><SPAN 
style="FONT-SIZE: 10pt; COLOR: red">| <SPAN>&nbsp;</SPAN> </SPAN><SPAN 
style="FONT-SIZE: 12pt"><FONT face="Century Gothic" color=#808080 size=2><FONT 
face="Times New Roman">Event Processor</FONT>, </FONT></SPAN><SPAN 
style="FONT-SIZE: 10pt; COLOR: gray"><FONT 
color=#ff0000><STRONG>Avaya</STRONG></FONT> <SPAN class=404025306-17042008><FONT 
face=Arial color=#0000ff>&nbsp; <STRONG><FONT face="Times New Roman" 
color=#ff0000></FONT></STRONG>&nbsp; </FONT></SPAN></SPAN><SPAN 
style="FONT-SIZE: 10pt"><SPAN><SPAN style="COLOR: red">|<SPAN 
class=404025306-17042008><FONT face=Arial color=#0000ff>&nbsp; 
&nbsp;</FONT></SPAN></SPAN><SPAN style="COLOR: gray">Tower</SPAN></SPAN><SPAN 
style="COLOR: gray"> 1<SPAN>1</SPAN>,&nbsp;<SPAN>5</SPAN> Floor<SPAN 
class=404025306-17042008><FONT face=Arial color=#0000ff>&nbsp;,<FONT 
face="Times New Roman" color=#808080> </FONT></FONT></SPAN></SPAN><SPAN><SPAN 
style="COLOR: gray">Cybercity, </SPAN></SPAN><SPAN><SPAN 
style="COLOR: gray">Pune</SPAN></SPAN><SPAN style="COLOR: gray"> 4110028 
-</SPAN><SPAN style="COLOR: gray">India</SPAN></SPAN><SPAN 
style="FONT-SIZE: 12pt"> </SPAN><SPAN 
style="FONT-SIZE: 10pt; COLOR: red">|</SPAN></DIV></SPAN></DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; 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>Edson 
  Tirelli<BR><B>Sent:</B> Tuesday, September 02, 2008 5:47 AM<BR><B>To:</B> 
  Rules Users List<BR><B>Subject:</B> Re: [rules-users] Declaring an 
  entry-point? (drools 5 M1)<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV dir=ltr><BR>&nbsp;&nbsp; Hello,<BR><BR>&nbsp;&nbsp; It seems you did 
  everything correctly. It seems there is a parser bug with the "" around the 
  name of the entry point. For now, just remove the " ", since your entry point 
  is a single word. I will make sure it gets fixed asap.<BR>&nbsp;&nbsp; 
  <BR>&nbsp;&nbsp; Also, a few more unit/integration tests you may want to look 
  at:<BR><BR><A 
  href="https://svn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/integrationtests/StreamsTest.java">https://svn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/integrationtests/StreamsTest.java</A><BR><A 
  href="https://svn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/integrationtests/CepEspTest.java">https://svn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/integrationtests/CepEspTest.java</A><BR><BR>&nbsp; 
  So, you are right to think that fact types are not tied to the streams... just 
  write "from entry-point" after any pattern to declare what entry point that 
  fact is coming from. Also, you can assert regular facts to entry-points. 
  Entry-points are a general abstraction, whose probably the most known use case 
  is for streams mapping, but not the only one.<BR><BR>&nbsp;&nbsp; 
  []s<BR>&nbsp;&nbsp; Edson<BR><BR>
  <DIV class=gmail_quote>2008/9/1 H. Canterburry <SPAN dir=ltr>&lt;<A 
  href="mailto:canterburry@gmail.com">canterburry@gmail.com</A>&gt;</SPAN><BR>
  <BLOCKQUOTE class=gmail_quote 
  style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hey, 
    I am playing around with the new CEP features in 5 M1 and primarily working 
    off of the blog posts and API doc. I have some patterns that pull from a 
    stream: <PRE>$candle : Candle( $instrument :  instrumentSpecification ) from entry-point "candles"</PRE>I 
    have my entry point in the WM: <PRE>candlesEntryPoint = this.session.getWorkingMemoryEntryPoint("candles");</PRE>I 
    have also defined Candle to be an event in my rule.package file: <PRE>import org.test.Candle

declare Candle
        @role(event)
end
</PRE>When I execute my sesson/getWorkingMemoryEntryPoint code above, I get 
    a null back for the entry point and thus can't insert the event (Candle). 
    The API docs for the getWorkingMemoryEntryPoint state that I need to define 
    an entry point in the rules file? Is that the above part in the rule.package 
    part or is that some other declaration? If that is a different declaration, 
    is there some documentation what that would look like? The way I currently 
    interpret the declare part is that I am designating my Candle object to be 
    an event rather than a fact. Does that indirectly also declare an entry 
    point? If so, how can I have heterogeneous streams with different object 
    types? Thanks HC <BR>
    <HR align=left width=300>
    View this message in context: <A 
    href="http://www.nabble.com/Declaring-an-entry-point--%28drools-5-M1%29-tp19260204p19260204.html" 
    target=_blank>Declaring an entry-point? (drools 5 M1)</A><BR>Sent from the 
    <A href="http://www.nabble.com/drools---user-f11823.html" 
    target=_blank>drools - user mailing list archive</A> at 
    Nabble.com.<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><BR><BR></BLOCKQUOTE></DIV><BR><BR 
  clear=all><BR>-- <BR>Edson Tirelli<BR>JBoss Drools Core Development<BR>JBoss, 
  a division of Red Hat @ <A 
  href="http://www.jboss.com">www.jboss.com</A><BR></DIV></BLOCKQUOTE></BODY></HTML>