<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" 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 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>A bit of a follow-up on this:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>When I build the package inside of Guvnor it shows me the following on the package build screen:<o:p></o:p></span></p><table class=MsoNormalTable border=0 cellpadding=0><tr><td valign=top style='padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal align=right style='text-align:right;line-height:18.0pt'><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Last Modified:<o:p></o:p></span></b></p></td><td style='padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal style='line-height:18.0pt'><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Wednesday, January 05, 2011 12:22:25 PM<o:p></o:p></span></b></p></td></tr><tr><td valign=top style='padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal align=right style='text-align:right;line-height:18.0pt'><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Last contributor:<o:p></o:p></span></b></p></td><td style='padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal style='line-height:18.0pt'><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>admin<o:p></o:p></span></b></p></td></tr><tr><td valign=top style='padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal align=right style='text-align:right;line-height:18.0pt'><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Date created:<o:p></o:p></span></b></p></td><td style='padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal style='line-height:18.0pt'><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Wednesday, January 05, 2011 12:15:42 PM<o:p></o:p></span></b></p></td></tr><tr><td valign=top style='padding:.75pt .75pt .75pt .75pt' id=ext-gen3942><p class=MsoNormal align=right style='text-align:right;line-height:18.0pt'><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Show package source:<o:p></o:p></span></b></p></td><td style='padding:.75pt .75pt .75pt .75pt' id=ext-gen3569><p class=MsoNormal style='line-height:18.0pt'><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Show package source<o:p></o:p></span></b></p></td></tr><tr><td valign=top style='padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal align=right style='text-align:right;line-height:18.0pt'><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>URL for package documentation:<o:p></o:p></span></b></p></td><td style='padding:.75pt .75pt .75pt .75pt' id=ext-gen3559><table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0><tr><td valign=top style='padding:0in 0in 0in 0in'><p class=MsoNormal style='line-height:18.0pt'><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><a href="http://vmjboss:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/A_RDR_v9/LATEST/documentation.pdf" target="_blank" id=ext-gen3570><span style='color:#1F497D;text-decoration:none'>http://vmjboss:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/A_RDR_v9/LATEST/documentation.pdf</span></a><o:p></o:p></span></b></p></td><td valign=top style='padding:0in 0in 0in 0in'><p class=MsoNormal style='line-height:18.0pt'><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><img border=0 width=16 height=16 id="Picture_x0020_6" src="cid:image001.gif@01CBADB2.904201E0" alt="Description: http://vmjboss:8080/drools-guvnor/org.drools.guvnor.Guvnor/images/information.gif"></span></b><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></b></p></td></tr></table></td></tr><tr><td valign=top style='padding:0in 0in 0in 0in'><p class=MsoNormal align=right style='text-align:right;line-height:18.0pt'><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>URL for package source:<o:p></o:p></span></b></p></td><td style='padding:0in 0in 0in 0in' id=ext-gen3548><table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0><tr><td valign=top style='padding:0in 0in 0in 0in' id=ext-gen6029><p class=MsoNormal style='line-height:18.0pt'><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><a href="http://vmjboss:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/A_RDR_v9/LATEST.drl" target="_blank" id=ext-gen3560><span style='color:#1F497D;text-decoration:none'>http://vmjboss:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/A_RDR_v9/LATEST.drl</span></a><o:p></o:p></span></b></p></td><td valign=top style='padding:0in 0in 0in 0in'><p class=MsoNormal style='line-height:18.0pt'><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><img border=0 width=16 height=16 id="Picture_x0020_5" src="cid:image001.gif@01CBADB2.904201E0" alt="Description: http://vmjboss:8080/drools-guvnor/org.drools.guvnor.Guvnor/images/information.gif"></span></b><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></b></p></td></tr></table></td></tr><tr><td valign=top style='padding:0in 0in 0in 0in'><p class=MsoNormal align=right style='text-align:right;line-height:18.0pt'><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>URL for package binary:<o:p></o:p></span></b></p></td><td style='padding:0in 0in 0in 0in' id=ext-gen3550><table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0><tr><td valign=top style='padding:0in 0in 0in 0in' id=ext-gen3565><p class=MsoNormal style='line-height:18.0pt'><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><a href="http://vmjboss:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/A_RDR_v9/LATEST" target="_blank" id=ext-gen3562><span style='color:#1F497D;text-decoration:none'>http://vmjboss:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/A_RDR_v9/LATEST</span></a><o:p></o:p></span></b></p></td><td valign=top style='padding:0in 0in 0in 0in'><p class=MsoNormal style='line-height:18.0pt'><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><img border=0 width=16 height=16 id="Picture_x0020_4" src="cid:image001.gif@01CBADB2.904201E0" alt="Description: http://vmjboss:8080/drools-guvnor/org.drools.guvnor.Guvnor/images/information.gif"></span></b><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></b></p></td></tr></table></td></tr><tr><td valign=top style='padding:0in 0in 0in 0in'><p class=MsoNormal align=right style='text-align:right;line-height:18.0pt'><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>URL for running tests:<o:p></o:p></span></b></p></td><td style='padding:0in 0in 0in 0in' id=ext-gen24316><table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0><tr><td valign=top style='padding:0in 0in 0in 0in' id=ext-gen6109><p class=MsoNormal style='line-height:18.0pt'><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><a href="http://vmjboss:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/A_RDR_v9/LATEST/SCENARIOS" target="_blank" id=ext-gen3564><span style='color:#1F497D;text-decoration:none'>http://vmjboss:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/A_RDR_v9/LATEST/SCENARIOS</span></a><o:p></o:p></span></b></p></td><td valign=top style='padding:0in 0in 0in 0in'><p class=MsoNormal style='line-height:18.0pt'><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><img border=0 width=16 height=16 id="Picture_x0020_3" src="cid:image001.gif@01CBADB2.904201E0" alt="Description: http://vmjboss:8080/drools-guvnor/org.drools.guvnor.Guvnor/images/information.gif"></span></b><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></b></p></td></tr></table></td></tr><tr><td valign=top style='padding:0in 0in 0in 0in'><p class=MsoNormal align=right style='text-align:right;line-height:18.0pt'><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Change Set:<o:p></o:p></span></b></p></td><td style='padding:0in 0in 0in 0in' id=ext-gen3551><table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0><tr><td valign=top style='padding:0in 0in 0in 0in'><p class=MsoNormal style='line-height:18.0pt'><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><a href="http://vmjboss:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/A_RDR_v9/LATEST/ChangeSet.xml" target="_blank" id=ext-gen3553><span style='color:#1F497D;text-decoration:none'>http://vmjboss:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/A_RDR_v9/LATEST/ChangeSet.xml</span></a><o:p></o:p></span></b></p></td><td valign=top style='padding:0in 0in 0in 0in'><p class=MsoNormal style='line-height:18.0pt'><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><img border=0 width=16 height=16 id="Picture_x0020_2" src="cid:image001.gif@01CBADB2.904201E0" alt="Description: http://vmjboss:8080/drools-guvnor/org.drools.guvnor.Guvnor/images/information.gif"></span></b><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></b></p></td></tr></table></td></tr><tr><td valign=top style='padding:0in 0in 0in 0in'><p class=MsoNormal align=right style='text-align:right;line-height:18.0pt'><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Status:<o:p></o:p></span></b></p></td><td style='padding:0in 0in 0in 0in' id=ext-gen3552><table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0><tr><td valign=top style='padding:0in 0in 0in 0in'></td><td valign=top style='padding:0in 0in 0in 0in'><p class=MsoNormal style='line-height:18.0pt'><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><img border=0 width=16 height=16 id="Picture_x0020_1" src="cid:image002.gif@01CBADB2.904201E0" alt="Description: http://vmjboss:8080/drools-guvnor/org.drools.guvnor.Guvnor/images/edit.gif"></span></b><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></b></p></td></tr></table></td></tr></table><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>In the example below you showed how I could use the .drl, but is there an advantage for me to directly use the package here? Or say I create a package snapshot and it gives me the following url<o:p></o:p></span></p><p class=MsoNormal style='text-indent:.5in'><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>http://vmjboss:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/A_RDR_v9/20110106<o:p></o:p></span></b></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Does using this package decrease the runtime inside of my app because Guvnor has pre-built the tables?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>If so, based on the example below, how would I implement using something like this package snapshot?&nbsp; Would it be as simple as:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='text-indent:.5in'><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>final String STANDARD_URL= <a href="http://vmjboss:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/A_RDR_v9/20110106">http://vmjboss:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/A_RDR_v9/20110106</a>;<o:p></o:p></span></b></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>and then<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b>kbuilder.add( standardUrlResource, ResourceType.<span style='background:yellow;mso-highlight:yellow'>PKG</span>);</b><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>leaving all other lines the same?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thank you!<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Dean Whisnant<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> rules-users-bounces@lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] <b>On Behalf Of </b>Michael Anstis<br><b>Sent:</b> Tuesday, January 04, 2011 3:31 AM<br><b>To:</b> Rules Users List<br><b>Subject:</b> Re: [rules-users] Knowledge Base and Guvnor<o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>Hi,<br><br>You should be able to use the URL syntax with KnowledgeBuilder as follows:-<br><span style='font-family:"Courier New"'><br>final String STANDARD_URL = &quot;<a href="http://your-guvnor-instance-host/org.drools.guvnor.Guvnor/package/standard/LATEST.drl">http://your-guvnor-instance-host/org.drools.guvnor.Guvnor/package/standard/LATEST.drl</a>&quot;;<br>final String CUSTOMER_URL=&quot;<a href="http://your-guvnor-instance-host/org.drools.guvnor.Guvnor/package/customer/LATEST.drl">http://your-guvnor-instance-host/org.drools.guvnor.Guvnor/package/customer/LATEST.drl</a>&quot;;<br><br>KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();<br><br>UrlResource standardUrlResource = (UrlResource)ResourceFactory.newUrlResource(STANDARD_URL);<br>standardUrlResource.setBasicAuthentication(&quot;enabled&quot;);<br>standardUrlResource.setUsername(&quot;xyz&quot;);<br>standardUrlResource.setPassword(&quot;abc&quot;);<br><br>UrlResource customerUrlResource = (UrlResource)ResourceFactory.newUrlResource(CUSTOMER_URL);<br>customerUrlResource.setBasicAuthentication(&quot;enabled&quot;);<br>customerUrlResource.setUsername(&quot;xyz&quot;);<br>customerUrlResource.setPassword(&quot;abc&quot;);<br><br>kbuilder.add( standardUrlResource, ResourceType.DRL);<br>kbuilder.add( customerUrlResource, ResourceType.DRL);<br><br>assertFalse( kbuilder.hasErrors() );<br>KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();<br></span><br>I don't think you'd need to (or want to) create two KnowledgeBases: You could ensure &quot;standard&quot; rules are applied first by any of Drools' agenda controls; i.e. salience, agenda-group or ruleflow; plus sharing a single KnowledgeBase ensures rules in both packages that share patterns are optimissed in the RETE network.<br><br>Use of ChangeSet could make things a little simpler too (rather than the individual UrlResources).<br><br>Cheers,<br><br>Mike<o:p></o:p></p><div><p class=MsoNormal>On 3 January 2011 20:03, Dean Whisnant &lt;<a href="mailto:dean@basys.com">dean@basys.com</a>&gt; wrote:<o:p></o:p></p><p class=MsoNormal>Hi all, thank you for all the help in the past.<br><br>I'm to a point in my project of implementing Guvnor built packages into my java code that calls drools.<br><br>In the past I used the simple solution of building the knowledge agent on a .drl file as follows:<br><br>&nbsp; &nbsp; &nbsp; &nbsp;//Setup the knowledge session for drools<br>&nbsp; &nbsp; &nbsp; &nbsp;private static KnowledgeBase readKnowledgeBase() throws Exception {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;KnowledgeBuilder kbuilder = KnowledgeBuilderFactory<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.newKnowledgeBuilder();<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;kbuilder.add(ResourceFactory.newClassPathResource(&quot;Standard837P.drl&quot;),<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ResourceType.DRL);<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;KnowledgeBuilderErrors errors = kbuilder.getErrors();<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (errors.size() &gt; 0) {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for (KnowledgeBuilderError error : errors) {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;System.err.println(error);<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;throw new IllegalArgumentException(&quot;Could not parse knowledge.&quot;);<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;kbase.addKnowledgePackages(kbuilder.getKnowledgePackages());<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return kbase;<br>&nbsp; &nbsp; &nbsp; &nbsp;}<br><br>A little background before the question. &nbsp;My project includes one set of rules that are standard business logic, we'll call that STANDARD for now and one set of rules that any one of my 45 customers could have created, we'll call CUSTOMER, on our common guvnor server. &nbsp;My java code knows which customer is running the app, so determining which two packages I want to fire is simple. &nbsp;The part that is not as straight forward for me is how I then I migrate using the guvnor urls in my above code.<br><br>I thought it would be as easy as to replace &quot;Standard837P.drl&quot; above with the STANDARD url and create a second add that would use the CUSTOMER url.<br><br>I also want all of my STANDARD rules applied before my CUSTOMER rules are applied. &nbsp;This got me thinking that I need to have two independent knowledge bases running so that I fire all in the first and then fire all in the second.<br><br>Backing up a bit again, my application looks through an incoming file inserting facts into the knowledge base for one medical claim line item, fires rules, writes out results to a database, and then moves on to the next claim line item in the file.<br><br>1) What would the syntax need to be to implement the STANDARD and CUSTOMER urls?<br>2) Would I need to create two independent knowledge bases?<br>3) DO you see any performance issues in this arrangement?<br><br>Thank you!<br><br>Dean<br><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><o:p></o:p></p></div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>