--- Begin Message ---
Hi Mark
 
Thanks very much for your reply.
Actually I want to keep functions and rules in saperate packages because all 
the functions will not change through out the application so I am loading the 
functions only once using te constructor of a singleton class but in my 
application user has choice to correct the wrong rule.
For this first I am removing the wrong rule internally and then I am deploying 
the correct rule.
I tried to remove wrong rule from the InvalidRulePackage by the method 
removeRule(String packageName, String ruleName) but it din't work.Thats why now 
I want to use two different packages so that I can remove the whole rules 
package.
 
Now tell me how can I do this?
 
Thanks.
 
With Regards
Prateek

________________________________

From: [EMAIL PROTECTED] on behalf of [EMAIL PROTECTED]
Sent: Mon 11/26/2007 3:10 PM
To: rules-users@lists.jboss.org
Subject: rules-users Digest, Vol 12, Issue 67



Send rules-users mailing list submissions to
        rules-users@lists.jboss.org

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.jboss.org/mailman/listinfo/rules-users
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of rules-users digest..."


Today's Topics:

   1. problem in removing rule from rulebase ([EMAIL PROTECTED])
   2. How to link packages in rulebase ([EMAIL PROTECTED])
   3. Re: How to link packages in rulebase (Mark Proctor)
   4. Re: problem in removing rule from rulebase (Mark Proctor)


----------------------------------------------------------------------

Message: 1
Date: Mon, 26 Nov 2007 11:46:56 +0530
From: <[EMAIL PROTECTED]>
Subject: [rules-users] problem in removing rule from rulebase
To: <rules-users@lists.jboss.org>
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://lists.jboss.org/pipermail/rules-users/attachments/20071126/5e1cf78b/attachment-0001.html

------------------------------

Message: 2
Date: Mon, 26 Nov 2007 11:58:35 +0530
From: <[EMAIL PROTECTED]>
Subject: [rules-users] How to link packages in rulebase
To: <rules-users@lists.jboss.org>
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"


Hello all

I am using Drools 4.0.3
I have two packages in my rulebase.In one package I am keeping all the 
functions related to my application and in another package I am deploying some 
rules for a specific module using front end in my application.
Now I want to use functions from one package in another package.

Any help will be appreciated.

Thanks.

With Regards
Prateek Katiyar
ES-eEnabling



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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://lists.jboss.org/pipermail/rules-users/attachments/20071126/fc85f1ac/attachment-0001.html

------------------------------

Message: 3
Date: Mon, 26 Nov 2007 09:32:44 +0000
From: Mark Proctor <[EMAIL PROTECTED]>
Subject: Re: [rules-users] How to link packages in rulebase
To: Rules Users List <rules-users@lists.jboss.org>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"

[EMAIL PROTECTED] wrote:
> Hello all
> 
> I am using Drools 4.0.3
> I have two packages in my rulebase.In one package I am keeping all the
> functions related to my application and in another package I am
> deploying some rules for a specific module using front end in my
> application.
> Now I want to use functions from one package in another package.
Add the drl with the functions first to the packagebuilder and then add
teh drl with your rules, it should just be able to use them.
> 
> Any help will be appreciated.
> 
> Thanks.
> 
> /*With Regards*/
> /*Prateek Katiyar*/
> /*ES-eEnabling*/
>
> 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
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://lists.jboss.org/pipermail/rules-users/attachments/20071126/a48a4811/attachment-0001.html

------------------------------

Message: 4
Date: Mon, 26 Nov 2007 09:39:38 +0000
From: Mark Proctor <[EMAIL PROTECTED]>
Subject: Re: [rules-users] problem in removing rule from rulebase
To: Rules Users List <rules-users@lists.jboss.org>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"

http://labs.jboss.com/auth/drools/lists.html
see 2 and 6


[EMAIL PROTECTED] wrote:
> 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
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://lists.jboss.org/pipermail/rules-users/attachments/20071126/f6c09cc3/attachment.html

------------------------------

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


End of rules-users Digest, Vol 12, Issue 67
*******************************************


<<winmail.dat>>


--- End Message ---
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
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to