Hi all,
I am using Drools IDE in Eclipse 3.2.
While I am creating the Rules project using Drools IDE, I am having the following folfder structur:
SampleRule >> src >> java
>>rules
I am crerating the package, so that:
SampleRule >> src >> java >> com >> sample
>>rules
Whenever I am creating a new rule, it will ask for the package. I will give com.samlpe. It will be stored in
Sample >> src >> rules >> myrule.drl (without com/sample/myRule.drl)
I want to add certain packages into the ruleBase. In the refernece manual, it's given as below:
ruleBase.addPackage( pkg ); // Add a package instance
ruleBase.addPackage( "org.com.sample" ); // remove a package, and all its parts, by it's namespace
ruleBase.removeRule( "org.com.sample", "my rule" ); // remove a specific rule from a namespace
But the addPackage won't accept the String argument and it's expecting package argument.
For example: I want to add/remove certain packages, how to acheive that.
I have two sets of packages: com.sample and com.example
com.sample package is having 10 drl files.
com.example package is having 10 drl files.
If i want to add only com.sample package, how can I achieve?
Get email for your site ---> http://www.everyone.net