Michael is correct. You need to add each resource to the knowledgebase ensuring that functions needed by rules are added before the rules themselves.<br><br><div class="gmail_quote">2009/7/2 Anstis, Michael (M.) <span dir="ltr"><<a href="mailto:manstis1@ford.com">manstis1@ford.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">I believe you will need to add each DRL file into a single
RuleBase (Drools 4.x terminology; I think KnowledgeBase in 5.0 but I'm a little
rusty).</font></span></div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">Don't forget rules aren't evaluated when "fireAllRules" is
called but as objects are inserted into WorkingMemory, so all rules need to be
compiled into a RuleBase before object insertion.</font></span></div><br>
<blockquote style="margin-right: 0px;">
<div dir="ltr" align="left" lang="en-us">
<hr>
<font size="2" face="Tahoma"><b>From:</b> <a href="mailto:rules-users-bounces@lists.jboss.org" target="_blank">rules-users-bounces@lists.jboss.org</a>
[mailto:<a href="mailto:rules-users-bounces@lists.jboss.org" target="_blank">rules-users-bounces@lists.jboss.org</a>] <b>On Behalf Of </b>Amila
Silva<br><b>Sent:</b> 02 July 2009 11:07<br><b>To:</b>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br><b>Subject:</b> [rules-users] How to call a
another drl file from one drl file<br></font><br></div><div><div></div><div class="h5">
<div></div>hi,<br> I have requirement to execute a chain of rules.
One rule after another and they are reusable.I need to know how to call
another drl file from a drl file. or in a then part of the <br> a
rule.<br><br>thanks<br>Amila Silva<br>
<blockquote style="margin: 1.5em 0pt;"></blockquote><br></div></div></blockquote></div>
<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>
<br></blockquote></div><br>