<div dir="ltr"><br><br><div class="gmail_quote">On Fri, Nov 21, 2008 at 8:28 PM, vanshi <span dir="ltr">&lt;<a href="mailto:nilu.thakur@gmail.com">nilu.thakur@gmail.com</a>&gt;</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&#39;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&nbsp;<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 &quot;include.drl&quot;, &quot;globles.drl&quot;, &quot;common.drl&quot; and the specific rules for each channel (C1, C2, C3).</div><div>
<br></div><div>The &quot;include.drl&quot; and &quot;globles.drl&quot; are inserted at system load to each of the filtering files (common, C1, C2...).&nbsp;</div><div>All the filtering files sit in the same package &quot;com.XX.filtering&quot;.&nbsp;</div>
<div><br></div><div>Up until now I had no problems with this approach, the only thing that I&#39;m concerned with is the RuleBaes performance because we use several &quot;Packages&quot; to build the sessions. &nbsp;</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>&quot;Free as in Freedom&quot; - Do u GNU ?<br>
</div></div>