[rules-dev] Event type and default entry-point

Wolfgang Laun wolfgang.laun at gmail.com
Thu Nov 18 12:14:26 EST 2010


Edson,
I've added your variations in JIRA-2801.
-W

On 18 November 2010 17:00, Edson Tirelli <tirelli at post.com> wrote:

>   Yes, I think it is a nice idea. I also want to add rule attributes
> (and package defaults) for entry points, in case all patterns in a
> rule/package should match a specific entry point.
>
>   Edson
>
> 2010/11/18 Wolfgang Laun <wolfgang.laun at gmail.com>:
> > Using
> >    X(...) from entry-point "y"
> > may be used for selecting a subset of events. Given that in STREAM mode
> > events coming from a single entry-point must be ordered by timestamp but
> > that it's not necessary to uphold this restriction across different entry
> > points, I have come up with a use case or two where I have an
> > n:1-relationship between event types and one entry-point, i.e., all
> events
> > of a type are inserted via one entry point, and this results in the
> > question:
> >
> > Would it be possible to implement the definition of the default entry
> point
> > for an Event or Fact type via a metadata attribute, e.g.:
> >    declare X
> >      @role( event )
> >      @entry-point( y )
> >    end
> > so that this
> >    a) declares the entry-point in the KnowledgeBase (the same way from
> > entry-point "x" does)
> >    b) removes the need to use from entry-point with all patterns
> referring
> > to X
> >    c) would still let me override the entry point with a "from
> entry-point"
> > clause.
> >
> > If not discouraged, I'll open a JIRA for an enhancement.
> >
> > Wolfgang
> >
> > BTW: Java Zone Trailer, http://www.youtube.com/watch?v=8Px-GHPxB4I (NSFW
> ;-)
> >
> >
> > _______________________________________________
> > rules-dev mailing list
> > rules-dev at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/rules-dev
> >
> >
>
>
>
> --
>   Edson Tirelli
>   JBoss Drools Core Development
>   JBoss by Red Hat @ www.jboss.com
>
> _______________________________________________
> rules-dev mailing list
> rules-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-dev/attachments/20101118/e4acd899/attachment.html 


More information about the rules-dev mailing list