Hello all
I am using Drools 4.0.3
I want to remove rules from a InvalidRulePackage during the run time of the java program.
For this I am using removeRule(String packageName, String ruleName) method in my program
but it is giving me the following exception:
org.drools.rule.InvalidRulePackage: Rule Compilation error : [Rule
name=valsubmitLoanApplication_0_1195817550531,
agendaGroup=EMPLoanApp_submitLoanApplication, salience=8, no-loop=false]
jbossrules/Rule_valsubmitLoanApplication_0_1195817550531_0.java (36:0) : File
jbossrules/Rule_valsubmitLoanApplication_0_1195817550531_0.java, Line 36, Column 0: Line
break in literal not allowed
Rule Compilation error : [Rule name=valsubmitLoanApplication_0_1195817550531,
agendaGroup=EMPLoanApp_submitLoanApplication, salience=8, no-loop=false]
jbossrules/Rule_valsubmitLoanApplication_0_1195817550531_0.java (36:0) : File
jbossrules/Rule_valsubmitLoanApplication_0_1195817550531_0.java, Line 36, Column 0: Line
break in literal not allowed
at org.drools.rule.Package.checkValidity(Package.java:424)
at org.drools.common.AbstractRuleBase.addPackage(AbstractRuleBase.java:361)
at
com.wipro.evalidator.validation.impl.DroolsValidator.validateXML(DroolsValidator.java:427)
at
com.wipro.evalidator.validation.impl.DroolsValidator.validate(DroolsValidator.java:176)
at TestDrool.main(TestDrool.java:87)
org.drools.rule.InvalidRulePackage: Rule Compilation error : [Rule
name=valsubmitLoanApplication_0_1195817550531,
agendaGroup=EMPLoanApp_submitLoanApplication, salience=8, no-loop=false]
jbossrules/Rule_valsubmitLoanApplication_0_1195817550531_0.java (36:0) : File
jbossrules/Rule_valsubmitLoanApplication_0_1195817550531_0.java, Line 36, Column 0: Line
break in literal not allowed
Rule Compilation error : [Rule name=valsubmitLoanApplication_0_1195817550531,
agendaGroup=EMPLoanApp_submitLoanApplication, salience=8, no-loop=false]
jbossrules/Rule_valsubmitLoanApplication_0_1195817550531_0.java (36:0) : File
jbossrules/Rule_valsubmitLoanApplication_0_1195817550531_0.java, Line 36, Column 0: Line
break in literal not allowed
at org.drools.rule.Package.checkValidity(Package.java:424)
at org.drools.common.AbstractRuleBase.addPackage(AbstractRuleBase.java:361)
at
com.wipro.evalidator.validation.impl.DroolsValidator.validateXML(DroolsValidator.java:427)
at
com.wipro.evalidator.validation.impl.DroolsValidator.validate(DroolsValidator.java:176)
at TestDrool.main(TestDrool.java:87)
org.drools.rule.InvalidRulePackage: Rule Compilation error : [Rule
name=valsubmitLoanApplication_0_1195817550531,
agendaGroup=EMPLoanApp_submitLoanApplication, salience=8, no-loop=false]
jbossrules/Rule_valsubmitLoanApplication_0_1195817550531_0.java (36:0) : File
jbossrules/Rule_valsubmitLoanApplication_0_1195817550531_0.java, Line 36, Column 0: Line
break in literal not allowed
Rule Compilation error : [Rule name=valsubmitLoanApplication_0_1195817550531,
agendaGroup=EMPLoanApp_submitLoanApplication, salience=8, no-loop=false]
jbossrules/Rule_valsubmitLoanApplication_0_1195817550531_0.java (36:0) : File
jbossrules/Rule_valsubmitLoanApplication_0_1195817550531_0.java, Line 36, Column 0: Line
break in literal not allowed
at org.drools.rule.Package.checkValidity(Package.java:424)
at org.drools.common.AbstractRuleBase.addPackage(AbstractRuleBase.java:361)
at
com.wipro.evalidator.validation.impl.DroolsValidator.validateXML(DroolsValidator.java:427)
at
com.wipro.evalidator.validation.impl.DroolsValidator.validate(DroolsValidator.java:176)
at TestDrool.main(TestDrool.java:87).
Now suggest me that how can I remove rules successfully.
Please reply because it's very important.
Thanks.
With Regards
Prateek
The information contained in this electronic message and any attachments to this message
are intended for the exclusive use of the addressee(s) and may contain proprietary,
confidential or privileged information. If you are not the intended recipient, you should
not disseminate, distribute or copy this e-mail. Please notify the sender immediately and
destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this
email and any attachments for the presence of viruses. The company accepts no liability
for any damage caused by any virus transmitted by this email.
www.wipro.com