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.