<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)">
<style><!--
/* Font Definitions */
@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:0cm;
        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;}
span.apple-style-span
        {mso-style-name:apple-style-span;}
span.hps
        {mso-style-name:hps;}
span.atn
        {mso-style-name:atn;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
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">To do that shouldn’t you just be doing something like the following? You should be using the knowledge* apis rather than the old rules* apis.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New";color:#1F497D">KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New";color:#1F497D">kbuilder.add(ResourceFactory.newReaderResource(new File(fileReader)), ResourceType.BRL);<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New";color:#1F497D">KnowledgeBase knowledgeBase = KnowledgeBaseFactory.newKnowledgeBase(conf);knowledgeBase.addKnowledgePackages(kbuilder.getKnowledgePackages());<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New";color:#1F497D">knowledgebase.newStatefulSession();<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thomas<o:p></o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<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>AZZAZ mohamed<br>
<b>Sent:</b> 16 September 2011 10:12<br>
<b>To:</b> Rules Users List<br>
<b>Subject:</b> Re: [rules-users] (no subject)<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span class="hps"><span style="font-family:"Arial","sans-serif";color:#333333;background:whitesmoke">I use</span></span><span class="apple-style-span"><span style="font-family:"Arial","sans-serif";color:#333333;background:whitesmoke"> </span></span><span class="hps"><span style="font-family:"Arial","sans-serif";color:#333333;background:whitesmoke">version</span></span><span class="apple-style-span"><span style="font-family:"Arial","sans-serif";color:#333333;background:whitesmoke"> </span></span><span class="hps"><span style="font-family:"Arial","sans-serif";color:#333333;background:whitesmoke">drools</span></span><span class="atn"><span style="font-family:"Arial","sans-serif";color:#333333;background:whitesmoke">-</span></span><span class="apple-style-span"><span style="font-family:"Arial","sans-serif";color:#333333;background:whitesmoke">core5.2.0 </span></span><span class="hps"><span style="font-family:"Arial","sans-serif";color:#333333;background:whitesmoke">and</span></span><span class="apple-style-span"><span style="font-family:"Arial","sans-serif";color:#333333;background:whitesmoke"> </span></span><span class="hps"><span style="font-family:"Arial","sans-serif";color:#333333;background:whitesmoke">drools</span></span><span class="apple-style-span"><span style="font-family:"Arial","sans-serif";color:#333333;background:whitesmoke">-compiler </span></span><span class="hps"><span style="font-family:"Arial","sans-serif";color:#333333;background:whitesmoke">5.2.0</span></span><span style="font-family:"Arial","sans-serif";color:#333333;background:whitesmoke"><br>
<span class="hps">In fact</span><span class="apple-style-span"> </span><span class="hps">I created</span><span class="apple-style-span"> </span><span class="hps">my</span><span class="apple-style-span"> </span><span class="hps">business rules</span><span class="apple-style-span"> </span><span class="hps">with
the</span><span class="apple-style-span"> </span><span class="hps">guided</span><span class="apple-style-span"> </span><span class="hps">rule</span><span class="apple-style-span"> . it </span><span class="hps">generates automatically a.</span><span class="apple-style-span"> </span><span class="hps">Brl.</span></span><o:p></o:p></p>
<div>
<p class="MsoNormal"><span class="hps"><span style="font-family:"Arial","sans-serif";color:#333333;background:whitesmoke"> I want to</span></span><span class="apple-style-span"><span style="font-family:"Arial","sans-serif";color:#333333;background:whitesmoke"> </span></span><span class="hps"><span style="font-family:"Arial","sans-serif";color:#333333;background:whitesmoke">convert</span></span><span class="apple-style-span"><span style="font-family:"Arial","sans-serif";color:#333333;background:whitesmoke"> it
to .drl</span></span><span class="hps"><span style="font-family:"Arial","sans-serif";color:#333333;background:whitesmoke"> me to</span></span><span class="apple-style-span"><span style="font-family:"Arial","sans-serif";color:#333333;background:whitesmoke"> </span></span><span class="hps"><span style="font-family:"Arial","sans-serif";color:#333333;background:whitesmoke">build
my</span></span><span class="apple-style-span"><span style="font-family:"Arial","sans-serif";color:#333333;background:whitesmoke"> </span></span><span class="hps"><span style="font-family:"Arial","sans-serif";color:#333333;background:whitesmoke">package</span></span><span class="apple-style-span"><span style="font-family:"Arial","sans-serif";color:#333333;background:whitesmoke"> </span></span><span class="hps"><span style="font-family:"Arial","sans-serif";color:#333333;background:whitesmoke">builder. </span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal"><span class="hps"><span style="font-family:"Arial","sans-serif";color:#333333;background:whitesmoke">Paris</span></span><o:p></o:p></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1"><br>
**************************************************************************************<br>
This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmaster@nds.com and delete it from your system as well as any copies. The content of e-mails as well as traffic data
may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary.<br>
<br>
NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00<br>
**************************************************************************************<br>
</font>
</body>
</html>