<div dir="ltr"><br><br><div class="gmail_quote">On Fri, Nov 21, 2008 at 8:28 PM, vanshi <span dir="ltr"><<a href="mailto:nilu.thakur@gmail.com">nilu.thakur@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Hi all,<br>
<br>
I have some set of rules which work on same Person object but depending on<br>
whether a person is student/employee/Faculty, the rule will have dfferent<br>
logic.<br>
<br>
So, I've made 3 .drl files, one will have all the rules for students, other<br>
for employee and then last .drl for faculty. All 3 .drl have same package<br>
name (as the first statement in drl) but all rules are named differently.<br>
When my rule engine starts, it reads these 3 drl files and adds them to a<br>
single rule base, starts a new session, inserts person in working memory and<br>
fires rules.<br>
<br>
Now, my questions are...is there anything odd/wrong with this approach?<br>
Secondly, I had some rules names same in different drl and when I changed<br>
them ....then I started getting null pointer exception error..... during<br>
parsing of drl files. Any idea why is that?<br></blockquote></div><div><br></div>Hi <span class="Apple-style-span" style="border-collapse: collapse; white-space: nowrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">vanshi</span><span class="Apple-style-span" style="border-collapse: collapse; font-weight: bold; white-space: nowrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">,</span><div>
<span class="Apple-style-span" style="border-collapse: collapse; color: rgb(0, 104, 28); font-weight: bold; white-space: nowrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><br clear="all">
</span>In our system the rules are deployed in a similar method:</div><div>We have a "include.drl", "globles.drl", "common.drl" and the specific rules for each channel (C1, C2, C3).</div><div>
<br></div><div>The "include.drl" and "globles.drl" are inserted at system load to each of the filtering files (common, C1, C2...). </div><div>All the filtering files sit in the same package "com.XX.filtering". </div>
<div><br></div><div>Up until now I had no problems with this approach, the only thing that I'm concerned with is the RuleBaes performance because we use several "Packages" to build the sessions. </div><div>
<br></div><div>I hope someone on this list could answer if this working mode has effect on performance?</div><div><br>-- <br>Cheers, <br>Maxim Veksler<br><br>"Free as in Freedom" - Do u GNU ?<br>
</div></div>