<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
checkout the code and take a look at drools-repository, and its unit
tests. Its self contained and doesn't sue any of the other drools-*
modules. Its fairly straight forward I think. You can always come onto
IRC and chat to us directly with your Qs on the framework.<br>
<br>
Mark<br>
Michael Rhoden wrote:
<blockquote
 cite="mid:L3AA14E31EA1743079FFF9CF2FF23B31C.1181926087.skat.bna.franklinamerican.com@MHS"
 type="cite">
  <meta content="MSHTML 6.00.2900.3132" name="GENERATOR">
  <div dir="ltr" align="left"><font color="#0000ff" face="Arial"
 size="2"><span class="123272816-15062007">Be happy to help, it just
takes a bit to understand your coding environment and standards. My
first goal is to point out the need for exposed Rule IDs and try to
understand the system the way it sits.</span></font>
  </div>
  <div dir="ltr" align="left"><font color="#0000ff" face="Arial"
 size="2"><span class="123272816-15062007"></span></font>&nbsp;
  </div>
  <div dir="ltr" align="left"><font color="#0000ff" face="Arial"
 size="2"><span class="123272816-15062007">As a side note, I found a
feature to "export to a zip file" under the Admin-&gt;Manage Backups.
It doesn't seem to work or maybe it just writes the file to some
default location. I did search my hard drive for any new Zips so I
guess it just doesn't work atm.</span></font>
  </div>
  <div>&nbsp;
  </div>
  <div><font face="Arial" size="2"><span class="123272816-15062007">Thanks,</span></font>
  </div>
  <div><font face="Arial" size="2">Michael Rhoden</font>
  </div>
  <div><font face="Arial" size="2"><br>
  </font>&nbsp;
  </div>
  <div align="left">&nbsp;
  </div>
  <div>&nbsp;
  </div>
  <br>
  <div class="OutlookMessageHeader" dir="ltr" align="left" lang="en-us">
  <hr tabindex="-1">&nbsp;&nbsp;
  <font face="Tahoma" size="2"><b>From:</b>
<a class="moz-txt-link-abbreviated" href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a>
[<a class="moz-txt-link-freetext" href="mailto:rules-users-bounces@lists.jboss.org">mailto:rules-users-bounces@lists.jboss.org</a>] <b>On Behalf Of </b>Mark
Proctor<br>
  <b>Sent:</b> Friday, June 15, 2007 10:29 AM<br>
  <b>To:</b> Rules Users List<br>
  <b>Subject:</b> Re: [rules-users] JBRMS - Rule IDs/Referencing<br>
  </font><br>
  </div>
The system is an "asset managemnt system", every item is an asset from
the rule to the package configuration. You can reference any item using
a unique name + package name +&nbsp; version, each item also has a UUID
(provided by the JCR node). However we don't have any remoting/ws api
access to this info - you would have to build ontop of the programmatic
api provided in drools-repository. The versioning is multi dimensional
too - i.e. a Package configuration&nbsp; is itself versioned against
specific versions of rules, if you want to update the Package to a new
version of a Rule, you must create a new version of the Package
Configuration.<br>
  <br>
So it sounds like it doesn't do what you want now, but the foundations
are there and you can get involved with us and help us change that.<br>
  <br>
Mark<br>
  <br>
  <br>
Michael Rhoden wrote:
  <blockquote
 cite="mid:LEBB06B4BE89443c8AFA9950765A11E2B.1181919958.skat.bna.franklinamerican.com@MHS"
 type="cite">
    <meta content="MSHTML 6.00.2900.3132" name="GENERATOR">
    <div><font face="Arial" size="2"><span class="730392514-15062007">I
have a question about rule storage and referencing with the JBRMS.
Mostly this is directed to Michael Neale (since I believe this is his
baby), but since I cant catch him on IRC I'll post it to here to see if
others have this similar concern. </span></font>
    </div>
    <div><font face="Arial" size="2"><span class="730392514-15062007"></span></font>
    </div>
    <div><font face="Arial" size="2"><span class="730392514-15062007">A
little history before I get to the question. We have been using drools
since 2.x (still on 2.x) and have developed much around the core
engine. T</span></font><font face="Arial" size="2"><span
 class="730392514-15062007">he way we currently store rules is in a
database, at runtime we pull them out and write an xml file. What this
allows is rule referencing back to the authoring source. We translate
from DB-&gt;XML so the "then" returns the ID. We also use it to create
unique names for rules. In our editor we have notes, versions and the
complete rule code,&nbsp;similar to&nbsp;the new JBRMS. When a rule fires in our
system the purpose may be to show an error or change a price. Either
way sometimes people ask why did this fire, or further, they dispute
the rule all together. So in each message or price change we track the
ID of the rule being fired/applied. </span></font>
    </div>
    <div><font face="Arial" size="2"><span class="730392514-15062007"></span></font>
    </div>
    <div><font face="Arial" size="2"><span class="730392514-15062007">From
that we have developed 2 tools, one to lookup a rule and see a great
deal of info about that rule (whats/whys), the other is an Override
tool that allows you, given authority, to associate a rule ID to a
transaction and have coded so when the engine fires this rule, it will
be ignored by the system. Obviously how we override is not something I
expect you to solve, but giving me the ability by having a unique ID
would be.</span></font> </div>
    <div><font face="Arial" size="2"><span class="730392514-15062007"></span></font>
    </div>
    <div><font face="Arial" size="2"><span class="730392514-15062007">I
would think the desire to "Track" and "Override" a rule is pretty high
for most people using a rule system in an enterprise. What makes this
possible is exposing a unique identifier in the storage of rules (think
database and editor) as well as the execution of rules (as they fire).
I setup the MR2 of the JBRMS and tried to look at the storage system to
see if a rule had some unique identifier that we could use, and found
none. Seems like a rulebase is a blob, though maybe I'm just looking at
it wrong.</span></font> </div>
    <div><font face="Arial" size="2"><span class="730392514-15062007"></span></font>
    </div>
    <div><font face="Arial" size="2"><span class="730392514-15062007">So
my question and/or request is there a way to have each rule have a
unique identifier (by version is fine) in the JBRMS storage system. I
think this is the first step, the second is harder but make the system
associate the ID to a rule at execution ("then"). Similar to the option
of expiring a rule at X date.</span></font> </div>
    <div><font face="Arial" size="2"><span class="730392514-15062007"></span></font>
    </div>
    <div><font face="Arial" size="2"><span class="730392514-15062007">While
this may not seem huge,&nbsp;and is definitely not as cool as&nbsp;changing
semantics in MVEL, it is a huge barrier of adopting this new very
feature rich JBRMS.</span></font> </div>
    <div><font face="Arial" size="2"><span class="730392514-15062007"></span></font>
    </div>
    <div><font face="Arial" size="2"><span class="730392514-15062007">Thanks,</span></font>
    </div>
    <div><font face="Arial" size="2"><span class="730392514-15062007">Michael
Rhoden</span></font> </div>
    <div> </div>
    <pre wrap=""><hr size="4" width="90%">&nbsp;&nbsp;


_______________________________________________
rules-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
 href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
 href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
  
    </pre>
  </blockquote>
  <br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
  </pre>
</blockquote>
<br>
</body>
</html>