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.

 

KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();

kbuilder.add(ResourceFactory.newReaderResource(new File(fileReader)), ResourceType.BRL);

 

KnowledgeBase knowledgeBase = KnowledgeBaseFactory.newKnowledgeBase(conf);knowledgeBase.addKnowledgePackages(kbuilder.getKnowledgePackages());

knowledgebase.newStatefulSession();

 

Thomas

From: rules-users-bounces@lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] On Behalf Of AZZAZ mohamed
Sent: 16 September 2011 10:12
To: Rules Users List
Subject: Re: [rules-users] (no subject)

 

I use version  drools-core5.2.0 and drools-compiler 5.2.0
In fact I created my business rules with the guided  rule . it generates automatically  a. Brl.

 I want to convert it to .drl me to build my package builder. 

 

 

Paris




**************************************************************************************
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.

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
**************************************************************************************