<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PlaceName"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PlaceType"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:Arial;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:Arial;
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;color:navy'>Hello,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;color:navy'>I am wondering if anyone has any experience in managing very
large rule sets and facts and could share their experiences in the design and management
of this.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;color:navy'>We are embarking on a new Student Information System project
here at UBC in conjunction with several other American universities. &nbsp;We
have pretty much decided to use Drools as our rules engine and maybe also the
Drools BRMS for our business rules management.&nbsp; Our first application is
the course curriculum application/module where we will manage course
co-requisites, pre-requisites, etc. and we estimate that we will have about
20,000 course rules. We currently have about 15,000 course rules (QuickRules)
in production now. We will also have security rules, input/form validation
rules, student awards rules, degree rules, enrolment rules, admission rules,
student financial rules etc. which will total about 40,000 rules. So currently
we are looking at managing about 60,000 rules (not including versioning).&nbsp;
If we include versioning then there would probably be more than 100,000 rules.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;color:navy'>Example:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;color:navy'>A single course could have 10 or more rules per course
version. We currently have about 2000 course and most courses have more than 1
version.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;color:navy'>We are looking into developing our own rules management
system to define dependencies between rules, courses (facts) and course + rule
versions. E.g. Course CHEM101 version 1 links to CHEM101 a single rule or a
rule set/package version 1 by a rule id.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;color:navy'>We need the ability to notify users when rules are modified
which impacts other rules and what impact changing a rule can cause for example
a degree program. E.g. changing a course&#8216;s pre-requisite may affect other
courses&#8217; pre-requisites; rules about rules. We also need the ability to
find out why a student was not able to register for a course etc. We will also
need to show the course dependency graph visually (the RDBMS can probably help
us here). Later, we are hoping to use the Drools Solver for course and exam
scheduling and also to use it for student degree planning and student awards.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;color:navy'>We will need to translate the rules into English language
syntax for publication in the course calendar and later into other languages
(first French) since the SIS application will be used internationally. Listing
requirements could just be shown in bulleted form. Probably can&#8217;t use the
DSL in this case since we would need to support several languages or maybe I am
wrong here?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;color:navy'>If we use the Drools BRMS to store all of our rules on a
relational database, will we be able to write SQL queries to get at specific
rules/packages to link facts (courses) to rules? Or do we have to go through
the BRMS to get at the rules. Does BRMS have a facility to validate rules
against facts so you can see if your rules execute correctly against your
data/facts before committing your rules. Or maybe we need a testing framework
for this.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;color:navy'>Other issues are the performance of the Drools Solver and
having thousands of rules compiled, loaded and running. During registration we
could have thousands of rules executing concurrently. The rules engine and the
BRMS would be services as part of an SOA infrastructure (and an OSGi service
environment).&nbsp; Anyone got any experience with Drools in an OSGi
environment with respect to class loading issues when compiling rules and facts
from other bundles since rules and facts may be in different bundles? Bundle buddy
class loading?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;color:navy'>Later, we will need translators to/from other rule engines;
maybe ruleML and JCR can help us here.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;color:navy'>So far, I think Drools can do most of this; am I correct
here? Does any of this sound plausible?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;color:navy'>Thanks very much for any tips, thoughts or comments.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;color:navy'>Len<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;color:navy'>Len Carlsen<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;color:navy'>Enrolment Services - Student Systems<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><U1:PLACE u2:st="on"><U1:PLACETYPE u2:st="on"><st1:place
w:st="on"><st1:PlaceType w:st="on"><font size=2 color=navy face=Arial><span
  style='font-size:10.0pt;color:navy'>University</U1:PLACETYPE></span></font></st1:PlaceType><font
 size=2 color=navy><span style='font-size:10.0pt;color:navy'> of <U1:PLACENAME u2:st="on"><st1:PlaceName
 w:st="on">British Columbia</U1:PLACENAME></st1:PlaceName></span></font></st1:place></U1:PLACE><font
size=2 color=navy><span style='font-size:10.0pt;color:navy'><o:p></o:p></span></font></p>

</div>

</body>

</html>