If you need to keep track of changes in your WM database, a property change<br>listener is one solution. In addition with an AgendaEventListener listening to<br>rules being fired you should be able to document what was done and by which<br>
rule. I'd say it is common sense to have this in a business application that<br>uses rule to modify data.<br><br>There are simpler scenarios such as validating or analyzing data where it<br>might not be necessary (after testing).<br>
<br>-W<br><br><div class="gmail_quote">On 9 August 2012 20:14, BenjaminWolfe <span dir="ltr"><<a href="mailto:benjamin.e.wolfe@gmail.com" target="_blank">benjamin.e.wolfe@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello all,<br>
<br>
My company is just venturing into Drools, and I'd like to help make the<br>
endeavor as successful as possible. We'll be incorporating the rules engine<br>
into a broad range of use cases (depending on how successful the first few<br>
are, of course), with a wide range of business users, most of them using the<br>
Guvnor interface.<br>
<br>
It seems to me we'll want some sort of audit log in the form of a<br>
transaction-level table, simply to answer the question (in any given case,<br>
for any reason) of /what happened?/. On the other hand, a transaction-level<br>
table -- for a whole set of rules -- for a *lot* of facts (built up over<br>
time) -- could get pretty big. And our tech folks might not want to<br>
allocate resources to store and maintain the table. So I have a couple of<br>
questions for the more experienced Drools users:<br>
<br>
1. How might you build a solid business case for such logging? Do you have<br>
any specific examples of the problems an audit log would solve, or the<br>
benefits it would create?<br>
2. How common is it to keep audit logs? Do almost all of your projects<br>
include them, almost none, or somewhere in between?<br>
3. Maybe I'm missing some nuance. Do you include audit logs of some rules<br>
fired, in some applications, but not others? Any other nuggets of wisdom?<br>
<br>
Thanks everyone,<br>
Benjamin<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Audit-Logs-Business-Case-Any-pearls-of-wisdom-tp4019073.html" target="_blank">http://drools.46999.n3.nabble.com/Audit-Logs-Business-Case-Any-pearls-of-wisdom-tp4019073.html</a><br>
Sent from the Drools: User forum mailing list archive at Nabble.com.<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>
</blockquote></div><br>