[rules-users] BRMS rule info logging

David Sinclair dsinclair at chariotsolutions.com
Fri Oct 3 10:43:09 EDT 2008


BRMS can be setup to use a DB, but it is not a "normal" table structure.
Remember that BRMS stores everything in a JCR (Java Content Repository), so
it is a JCR data model, not BRMS's.

I agree with Michael. Use an agenda listener to keep track of the firing of
different rules.

On Fri, Oct 3, 2008 at 10:35 AM, techluver <techluver007 at gmail.com> wrote:

>
> Thanks Michael. that gives me some idea.
>
> It think BRMS has its own tables to manage the rules(please correct if I'm
> wrong).
> 1.Can I directly make/delete rule entry in those table without using BRMS.
> Will BRMS identify those rules without any issues?
> 2. Can I reference the Ids(something rule_id) from these table as foreign
> key in my other app tables?
> Please clarify,
>
>
>
> Michael Neale wrote:
> >
> > BRMS is more of a design time feature - what you are talking is
> > logging an audit trail of rules execution - you can do that with event
> > listeners in your code (so your rules don't even have to be aware of
> > it) then as rules fire, you can grab the details (from the listener
> > APIs) and log it as you please !
> >
> >
> > Michael.
> >
> > On Thu, Oct 2, 2008 at 5:01 AM, techluver <techluver007 at gmail.com>
> wrote:
> >>
> >> I'm new to drools world. Kindly clarify following things
> >>
> >> My requirement is to log each data in the DB(that meets any of the
> >> business
> >> rule) along with rule info.
> >>
> >> if I use BRMS ( i think it maintains the rules separately in its own db
> >> table)
> >>
> >> How I can associate each log with the rule info?
> >>
> >> Approach 1. Can I access BRMS's rules directly and associate it in my
> >> logging?
> >>
> >> Approach 2. I can't do Approach 1, then I'm thinking to have RULES table
> >> in
> >> my app db.Then whenever any rule is added using BRMS, Then add an entry
> >> into
> >> RULES table and use this table for my logging
> >>
> >> Please advise me on the right approach.
> >>
> >> Thanks in advance.
> >> --
> >> View this message in context:
> >> http://www.nabble.com/BRMS-rule-info-logging-tp19766982p19766982.html
> >> Sent from the drools - user mailing list archive at Nabble.com.
> >>
> >> _______________________________________________
> >> rules-users mailing list
> >> rules-users at lists.jboss.org
> >> https://lists.jboss.org/mailman/listinfo/rules-users
> >>
> >
> >
> >
> > --
> > Michael D Neale
> > home: www.michaelneale.net
> > blog: michaelneale.blogspot.com
> > _______________________________________________
> > rules-users mailing list
> > rules-users at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/rules-users
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/BRMS-rule-info-logging-tp19766982p19799028.html
> Sent from the drools - user mailing list archive at Nabble.com.
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20081003/25774d86/attachment.html 


More information about the rules-users mailing list