Edson,<br>I&#39;ve added your variations in JIRA-2801.<br>-W<br><br><div class="gmail_quote">On 18 November 2010 17:00, Edson Tirelli <span dir="ltr">&lt;<a href="mailto:tirelli@post.com">tirelli@post.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">   Yes, I think it is a nice idea. I also want to add rule attributes<br>
(and package defaults) for entry points, in case all patterns in a<br>
rule/package should match a specific entry point.<br>
<br>
   Edson<br>
<br>
2010/11/18 Wolfgang Laun &lt;<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>&gt;:<br>
<div><div></div><div class="h5">&gt; Using<br>
&gt;    X(...) from entry-point &quot;y&quot;<br>
&gt; may be used for selecting a subset of events. Given that in STREAM mode<br>
&gt; events coming from a single entry-point must be ordered by timestamp but<br>
&gt; that it&#39;s not necessary to uphold this restriction across different entry<br>
&gt; points, I have come up with a use case or two where I have an<br>
&gt; n:1-relationship between event types and one entry-point, i.e., all events<br>
&gt; of a type are inserted via one entry point, and this results in the<br>
&gt; question:<br>
&gt;<br>
&gt; Would it be possible to implement the definition of the default entry point<br>
&gt; for an Event or Fact type via a metadata attribute, e.g.:<br>
&gt;    declare X<br>
&gt;      @role( event )<br>
&gt;      @entry-point( y )<br>
&gt;    end<br>
&gt; so that this<br>
&gt;    a) declares the entry-point in the KnowledgeBase (the same way from<br>
&gt; entry-point &quot;x&quot; does)<br>
&gt;    b) removes the need to use from entry-point with all patterns referring<br>
&gt; to X<br>
&gt;    c) would still let me override the entry point with a &quot;from entry-point&quot;<br>
&gt; clause.<br>
&gt;<br>
&gt; If not discouraged, I&#39;ll open a JIRA for an enhancement.<br>
&gt;<br>
&gt; Wolfgang<br>
&gt;<br>
&gt; BTW: Java Zone Trailer, <a href="http://www.youtube.com/watch?v=8Px-GHPxB4I" target="_blank">http://www.youtube.com/watch?v=8Px-GHPxB4I</a> (NSFW ;-)<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; rules-dev mailing list<br>
&gt; <a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
--<br>
  Edson Tirelli<br>
  JBoss Drools Core Development<br>
  JBoss by Red Hat @ <a href="http://www.jboss.com" target="_blank">www.jboss.com</a><br>
<br>
_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
</blockquote></div><br>