Re: [rules-users] Rules doubt
@Wolfgang, thanks a lot for ur wonderful explanation regarding the Dialect... But i still cant find the better way to know the exact error in some cases ,one case i had mentioned in my previous post ...i want to highlight that my drl are loading from database so i cant put break point in drl. appreciate ur help. thanks Puneet On 5/4/10, Wolfgang Laun wrote: > > Here, I've found this for you, a comment from the Drools source file > org.drools.rule.builder.dialect.java.JavaDialectConfiguration > > * There are options to use various flavours of runtime compilers. > * Apache JCI is used as the interface to all the runtime compilers. > * > * You can also use the system property "drools.compiler" to set the > desired compiler. > * The valid values are "ECLIPSE" and "JANINO" only. > * > * drools.dialect.java.compiler = > * drools.dialect.java.lngLevel = <1.5|1.6> > * > * The default compiler is Eclipse and the default lngLevel is 1.5. > * The lngLevel will attempt to autodiscover your system using the > * system property "java.version" > * > * The JavaDialectConfiguration will attempt to validate that the > specified compiler > * is in the classpath, using ClassLoader.loasClass(String). If you intented > to > * just Janino sa the compiler you must either overload the compiler > property before > * instantiating this class or the PackageBuilder, or make sure > Eclipse is in the > * classpath, as Eclipse is the default. > > Try it without the JANINO setting - it *should* flag the setter with > the incompatible types. > > If you haven't used MVEL so far, I don't see any reason to start now. > > -W > > > 2010/5/4 Puneet duggal : > > @ Wolfgang Laun , > > > > i am using just this statement:- > > > > javaConf.setCompiler( JavaDialectConfiguration.JANINO ); > > > > I dont know the exact use of this statement .I am not using the mvel > > , i tried to google abt it but couldnt find the use of this ... > > can u through some light on this. > > > > Thanks > > > > > > On 5/4/10, Wolfgang Laun wrote: > >> > >> Actually, this kind of error isn't discovered by the Drools DRL > compiler; > >> it would be flagged by the Java compiler. (You can verify: if you make > the > >> same error in Java code, you'll get that error message.) > >> > >> But if you are using dialect "mvel" (are you?), this is not flagged as > an > >> error, and it would silently convert the Double to a String, and set > >> fid31003 to "497.0". Is this what keeps your other rules from firing, > i.e., > >> the excess ".0"? > >> > >> I suggest that you do not use "mvel" unless there is a compelling reason > >> (in other rules). Even then, you might restrict use "mvel" to those > rules > >> where it is really necessary. > >> > >> -W > >> > >> > >> 2010/5/4 Puneet duggal > >>> > >>> drlFile = BusinessRuleUtils.createCombinedDrlDocument(id,map.get(id)); > >>> > >>> PackageBuilder PACKAGE_BUILDER = new > >>> PackageBuilder(BUILDER_CONFIGURATION); > >>> org.drools.rule.Package pkg = null; > >>> PACKAGE_BUILDER > >>>.addPackageFromDrl(new StringReader(drlFile)); > >>> if (PACKAGE_BUILDER.hasErrors()) { > >>> DSM_LOGGER > >>> .logFatal("Error has occured while building package. For > >>> Parameter ID : " > >>> + id > >>> + " Error details are : " > >>> + PACKAGE_BUILDER.getErrors() > >>> .toString()); > >>> } else { > >>> pkg = PACKAGE_BUILDER.getPackage(); > >>> RULEBASE.addPackage(pkg); > >>> DSM_LOGGER > >>> .logInfo("Package created for Component Prmr ID : " > >>> + id); > >>> } > >>> > >>> > >>> > >>> This is the code which i am using at it is not giving > >>> any error at the time creating the drl file.it is also > >>> not giving any error at the time of calling of execute() > >>> method , but rules are not executed . > >>> > >>> On 5/4/10, Wolfgang Laun wrote: > > Anatoly, > > please note that I wrote "please" to Puneet, which is usually not > considered > as being "impolite". Also, kindly note that I asked for more > information, which, > in my book, is not "inconsiderate", as simply deleting Puneet's post > might have been. > > I do resent being called a "hater", and I'll let the community judge > whether > my (admittedly ironic) kidding is "hateful". Somehow, however, posters > have to > be admonished to state their problem more detailed, without people on > the > list having to waste their time playing guessing games or writing > replies begging > for more information. > > -W > > PS: A you can see now, it was not a question of "debugging", and so > you > have wasted > your time on a "simple question". :-) > > > On Tue, May 4, 2010 at 5:10 AM, tolitius wrote: > > > > > > @Wolfgang, > > > >No need to be a hater Wolfgang, the question is simple. I agree, > >>>
Re: [rules-users] Rules doubt
Here, I've found this for you, a comment from the Drools source file org.drools.rule.builder.dialect.java.JavaDialectConfiguration * There are options to use various flavours of runtime compilers. * Apache JCI is used as the interface to all the runtime compilers. * * You can also use the system property "drools.compiler" to set the desired compiler. * The valid values are "ECLIPSE" and "JANINO" only. * * drools.dialect.java.compiler = * drools.dialect.java.lngLevel = <1.5|1.6> * * The default compiler is Eclipse and the default lngLevel is 1.5. * The lngLevel will attempt to autodiscover your system using the * system property "java.version" * * The JavaDialectConfiguration will attempt to validate that the specified compiler * is in the classpath, using ClassLoader.loasClass(String). If you intented to * just Janino sa the compiler you must either overload the compiler property before * instantiating this class or the PackageBuilder, or make sure Eclipse is in the * classpath, as Eclipse is the default. Try it without the JANINO setting - it *should* flag the setter with the incompatible types. If you haven't used MVEL so far, I don't see any reason to start now. -W 2010/5/4 Puneet duggal : > @ Wolfgang Laun , > > i am using just this statement:- > > javaConf.setCompiler( JavaDialectConfiguration.JANINO ); > > I dont know the exact use of this statement .I am not using the mvel > , i tried to google abt it but couldnt find the use of this ... > can u through some light on this. > > Thanks > > > On 5/4/10, Wolfgang Laun wrote: >> >> Actually, this kind of error isn't discovered by the Drools DRL compiler; >> it would be flagged by the Java compiler. (You can verify: if you make the >> same error in Java code, you'll get that error message.) >> >> But if you are using dialect "mvel" (are you?), this is not flagged as an >> error, and it would silently convert the Double to a String, and set >> fid31003 to "497.0". Is this what keeps your other rules from firing, i.e., >> the excess ".0"? >> >> I suggest that you do not use "mvel" unless there is a compelling reason >> (in other rules). Even then, you might restrict use "mvel" to those rules >> where it is really necessary. >> >> -W >> >> >> 2010/5/4 Puneet duggal >>> >>> drlFile = BusinessRuleUtils.createCombinedDrlDocument(id,map.get(id)); >>> >>> PackageBuilder PACKAGE_BUILDER = new >>> PackageBuilder(BUILDER_CONFIGURATION); >>> org.drools.rule.Package pkg = null; >>> PACKAGE_BUILDER >>> .addPackageFromDrl(new StringReader(drlFile)); >>> if (PACKAGE_BUILDER.hasErrors()) { >>> DSM_LOGGER >>> .logFatal("Error has occured while building package. For >>> Parameter ID : " >>> + id >>> + " Error details are : " >>> + PACKAGE_BUILDER.getErrors() >>> .toString()); >>> } else { >>> pkg = PACKAGE_BUILDER.getPackage(); >>> RULEBASE.addPackage(pkg); >>> DSM_LOGGER >>> .logInfo("Package created for Component Prmr ID : " >>> + id); >>> } >>> >>> >>> >>> This is the code which i am using at it is not giving >>> any error at the time creating the drl file.it is also >>> not giving any error at the time of calling of execute() >>> method , but rules are not executed . >>> >>> On 5/4/10, Wolfgang Laun wrote: Anatoly, please note that I wrote "please" to Puneet, which is usually not considered as being "impolite". Also, kindly note that I asked for more information, which, in my book, is not "inconsiderate", as simply deleting Puneet's post might have been. I do resent being called a "hater", and I'll let the community judge whether my (admittedly ironic) kidding is "hateful". Somehow, however, posters have to be admonished to state their problem more detailed, without people on the list having to waste their time playing guessing games or writing replies begging for more information. -W PS: A you can see now, it was not a question of "debugging", and so you have wasted your time on a "simple question". :-) On Tue, May 4, 2010 at 5:10 AM, tolitius wrote: > > > @Wolfgang, > > No need to be a hater Wolfgang, the question is simple. I agree, > examples would be helpful, but that is NOT how you grow a friendly > community. > > Community is the biggest problem JBoss has. Why is it so inhumanly > difficult to be polite and considerate? > > /Anatoly > > -- > View this message in context: > http://drools-java-rules-engine.46999.n3.nabble.com/Rules-doubt-tp774023p775029.html > Sent from the Drools - User mailing list archive at Nabble.com. > ___ > rules-users mailing list > rules-users@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-use
Re: [rules-users] Rules doubt
@Wolfgang, 1.Thank you for being considered, and not simply deleting Puneet's question. 2.I know that "debugging" was not the right answer, in case the error meant "his rule did not even compile", and it was not a "business" error. 2.After Puneet's gave you a better description, you answer ( pb.getErrors() ) had nothing to do with the actual description. 3.@salaboy gave the same answer ( kbuilder.getErrors() ) only based on the initial question, was he sitting a little to the left with a better vision, so the font did not need to be enlarged for him? The moral is: "Knowledge in a matter ( and the power to delete the post ) should not make you less willing to help". /Anatoly -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Rules-doubt-tp774023p776069.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Rules doubt
@ Wolfgang Laun , i am using just this statement:- javaConf.setCompiler( JavaDialectConfiguration.*JANINO* ); I dont know the exact use of this statement .I am not using the mvel , i tried to google abt it but couldnt find the use of this ... can u through some light on this. Thanks On 5/4/10, Wolfgang Laun wrote: > > Actually, this kind of error isn't discovered by the Drools DRL compiler; > it would be flagged by the Java compiler. (You can verify: if you make the > same error in Java code, you'll get that error message.) > > But if you are using dialect "mvel" (are you?), this is not flagged as an > error, and it would silently convert the Double to a String, and set > fid31003 to "497.0". Is this what keeps your other rules from firing, i.e., > the excess ".0"? > > I suggest that you do not use "mvel" unless there is a compelling reason > (in other rules). Even then, you might restrict use "mvel" to those rules > where it is really necessary. > > -W > > > 2010/5/4 Puneet duggal > >> drlFile = BusinessRuleUtils.createCombinedDrlDocument(id,map.get(id)); >> >> PackageBuilder PACKAGE_BUILDER = new >> PackageBuilder(BUILDER_CONFIGURATION); >> org.drools.rule.Package pkg = null; >> PACKAGE_BUILDER >>.addPackageFromDrl(new StringReader(drlFile)); >> if (PACKAGE_BUILDER.hasErrors()) { >> DSM_LOGGER >> .logFatal("Error has occured while building package. For Parameter >> ID : " >> + id >> + " Error details are : " >> + PACKAGE_BUILDER.getErrors() >> .toString()); >> } else { >> pkg = PACKAGE_BUILDER.getPackage(); >> RULEBASE.addPackage(pkg); >> DSM_LOGGER >> .logInfo("Package created for Component Prmr ID : " >> + id); >> } >> >> >> This is the code which i am using at it is not giving >> any error at the time creating the drl file.it is also >> not giving any error at the time of calling of execute() >> method , but rules are not executed . >> >> >> On 5/4/10, Wolfgang Laun wrote: >>> >>> Anatoly, >>> >>> please note that I wrote "please" to Puneet, which is usually not >>> considered >>> as being "impolite". Also, kindly note that I asked for more information, >>> which, >>> in my book, is not "inconsiderate", as simply deleting Puneet's post >>> might have been. >>> >>> I do resent being called a "hater", and I'll let the community judge >>> whether >>> my (admittedly ironic) kidding is "hateful". Somehow, however, posters >>> have to >>> be admonished to state their problem more detailed, without people on the >>> list having to waste their time playing guessing games or writing replies >>> begging >>> for more information. >>> >>> -W >>> >>> PS: A you can see now, it was not a question of "debugging", and so you >>> have wasted >>> your time on a "simple question". :-) >>> >>> >>> >>> On Tue, May 4, 2010 at 5:10 AM, tolitius wrote: >>> @Wolfgang, No need to be a hater Wolfgang, the question is simple. I agree, examples would be helpful, but that is NOT how you grow a friendly community. Community is the biggest problem JBoss has. Why is it so inhumanly difficult to be polite and considerate? /Anatoly -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Rules-doubt-tp774023p775029.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users >>> >>> >>> ___ >>> rules-users mailing list >>> rules-users@lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/rules-users >>> >>> >> >> >> ___ >> rules-users mailing list >> rules-users@lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/rules-users >> >> > > ___ > rules-users mailing list > rules-users@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users > > ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Rules doubt
Actually, this kind of error isn't discovered by the Drools DRL compiler; it would be flagged by the Java compiler. (You can verify: if you make the same error in Java code, you'll get that error message.) But if you are using dialect "mvel" (are you?), this is not flagged as an error, and it would silently convert the Double to a String, and set fid31003 to "497.0". Is this what keeps your other rules from firing, i.e., the excess ".0"? I suggest that you do not use "mvel" unless there is a compelling reason (in other rules). Even then, you might restrict use "mvel" to those rules where it is really necessary. -W 2010/5/4 Puneet duggal > drlFile = BusinessRuleUtils.createCombinedDrlDocument(id,map.get(id)); > PackageBuilder PACKAGE_BUILDER = new > PackageBuilder(BUILDER_CONFIGURATION); > org.drools.rule.Package pkg = null; > PACKAGE_BUILDER >.addPackageFromDrl(new StringReader(drlFile)); > if (PACKAGE_BUILDER.hasErrors()) { > DSM_LOGGER > .logFatal("Error has occured while building package. For Parameter > ID : " > + id > + " Error details are : " > + PACKAGE_BUILDER.getErrors() > .toString()); > } else { > pkg = PACKAGE_BUILDER.getPackage(); > RULEBASE.addPackage(pkg); > DSM_LOGGER > .logInfo("Package created for Component Prmr ID : " > + id); > } > > > This is the code which i am using at it is not giving > any error at the time creating the drl file.it is also > not giving any error at the time of calling of execute() > method , but rules are not executed . > > > On 5/4/10, Wolfgang Laun wrote: >> >> Anatoly, >> >> please note that I wrote "please" to Puneet, which is usually not >> considered >> as being "impolite". Also, kindly note that I asked for more information, >> which, >> in my book, is not "inconsiderate", as simply deleting Puneet's post might >> have been. >> >> I do resent being called a "hater", and I'll let the community judge >> whether >> my (admittedly ironic) kidding is "hateful". Somehow, however, posters >> have to >> be admonished to state their problem more detailed, without people on the >> list having to waste their time playing guessing games or writing replies >> begging >> for more information. >> >> -W >> >> PS: A you can see now, it was not a question of "debugging", and so you >> have wasted >> your time on a "simple question". :-) >> >> >> >> On Tue, May 4, 2010 at 5:10 AM, tolitius wrote: >> >>> >>> >>> @Wolfgang, >>> >>>No need to be a hater Wolfgang, the question is simple. I agree, >>> examples would be helpful, but that is NOT how you grow a friendly >>> community. >>> >>>Community is the biggest problem JBoss has. Why is it so inhumanly >>> difficult to be polite and considerate? >>> >>> /Anatoly >>> >>> -- >>> View this message in context: >>> http://drools-java-rules-engine.46999.n3.nabble.com/Rules-doubt-tp774023p775029.html >>> Sent from the Drools - User mailing list archive at Nabble.com. >>> ___ >>> rules-users mailing list >>> rules-users@lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/rules-users >>> >> >> >> ___ >> rules-users mailing list >> rules-users@lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/rules-users >> >> > > ___ > rules-users mailing list > rules-users@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users > > ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Rules doubt
drlFile = BusinessRuleUtils.createCombinedDrlDocument(id,map.get(id)); PackageBuilder PACKAGE_BUILDER = new PackageBuilder(BUILDER_CONFIGURATION); org.drools.rule.Package pkg = null; PACKAGE_BUILDER .addPackageFromDrl(new StringReader(drlFile)); if (PACKAGE_BUILDER.hasErrors()) { DSM_LOGGER .logFatal("Error has occured while building package. For Parameter ID : " + id + " Error details are : " + PACKAGE_BUILDER.getErrors() .toString()); } else { pkg = PACKAGE_BUILDER.getPackage(); RULEBASE.addPackage(pkg); DSM_LOGGER .logInfo("Package created for Component Prmr ID : " + id); } This is the code which i am using at it is not giving any error at the time creating the drl file.it is also not giving any error at the time of calling of execute() method , but rules are not executed . On 5/4/10, Wolfgang Laun wrote: > > Anatoly, > > please note that I wrote "please" to Puneet, which is usually not > considered > as being "impolite". Also, kindly note that I asked for more information, > which, > in my book, is not "inconsiderate", as simply deleting Puneet's post might > have been. > > I do resent being called a "hater", and I'll let the community judge > whether > my (admittedly ironic) kidding is "hateful". Somehow, however, posters have > to > be admonished to state their problem more detailed, without people on the > list having to waste their time playing guessing games or writing replies > begging > for more information. > > -W > > PS: A you can see now, it was not a question of "debugging", and so you > have wasted > your time on a "simple question". :-) > > > > On Tue, May 4, 2010 at 5:10 AM, tolitius wrote: > >> >> >> @Wolfgang, >> >>No need to be a hater Wolfgang, the question is simple. I agree, >> examples would be helpful, but that is NOT how you grow a friendly >> community. >> >>Community is the biggest problem JBoss has. Why is it so inhumanly >> difficult to be polite and considerate? >> >> /Anatoly >> >> -- >> View this message in context: >> http://drools-java-rules-engine.46999.n3.nabble.com/Rules-doubt-tp774023p775029.html >> Sent from the Drools - User mailing list archive at Nabble.com. >> ___ >> rules-users mailing list >> rules-users@lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/rules-users >> > > > ___ > rules-users mailing list > rules-users@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users > > ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Rules doubt
Anatoly, please note that I wrote "please" to Puneet, which is usually not considered as being "impolite". Also, kindly note that I asked for more information, which, in my book, is not "inconsiderate", as simply deleting Puneet's post might have been. I do resent being called a "hater", and I'll let the community judge whether my (admittedly ironic) kidding is "hateful". Somehow, however, posters have to be admonished to state their problem more detailed, without people on the list having to waste their time playing guessing games or writing replies begging for more information. -W PS: A you can see now, it was not a question of "debugging", and so you have wasted your time on a "simple question". :-) On Tue, May 4, 2010 at 5:10 AM, tolitius wrote: > > > @Wolfgang, > >No need to be a hater Wolfgang, the question is simple. I agree, > examples would be helpful, but that is NOT how you grow a friendly > community. > >Community is the biggest problem JBoss has. Why is it so inhumanly > difficult to be polite and considerate? > > /Anatoly > > -- > View this message in context: > http://drools-java-rules-engine.46999.n3.nabble.com/Rules-doubt-tp774023p775029.html > Sent from the Drools - User mailing list archive at Nabble.com. > ___ > rules-users mailing list > rules-users@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users > ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Rules doubt
Puneet, this is what I do to load rules and start a session: File drl = new File( getDrlPath() ); ruleBase = RuleBaseFactory.newRuleBase(); PackageBuilder pb = new PackageBuilder(); Reader fr = new FileReader( drl ); pb.addPackageFromDrl( fr ); if( pb.hasErrors() ){ PackageBuilderErrors errors = pb.getErrors(); for( DroolsError err: errors.getErrors() ){ System.err.println( err.toString() ); } return; // or whatever you need to do in your environment to abort } ruleBase.addPackages( pb.getPackages() ); session = ruleBase.newStatefulSession(); and this is the error message that's printed due to a comparable error: Rule Compilation error : [Rule name='ruleB'] appl/activation/Rule_ruleB_0.java (10:524) : The method setName(String) in the type Thing is not applicable for the arguments (Double) -W 2010/5/4 Puneet duggal > This is My rule > > > rule "Area_SquareFt_01_10-01-09_12-31-14" > date-effective "01-Oct-2009" date-expires "31-Dec-2014" salience 6 > no-loop true > when > eval(BusinessLogic.gettest("Inside Area_SquareFt_01_10-01-09_12-31-14 > executed")) > objectP2483 : Para_2483( (fid2335=="Block") && (fid2336=="16") ); > > then > System.out.println("Area_SquareFt_01_10-01-09_12-31-14 executed"); > objectP2483.setFid31003(new Double(497)); end > > > > here My 31003 is a String field but i am assigning a Double in it so > that should'nt > work . But the problem is because of this my all remmaning rules also > stoped working. > And it took 2 hours to detect it because the execute() method dosent > through any error. > So how can we detect these situation earlier ,so as to catch the problem > early and why my the remm > rules stoped woking because on this. > > > > > On 5/4/10, tolitius wrote: >> >> >> @Puneet, >> >>Examples would be useful to understand what kind of problem you are >> having. As to >> Puneet wrote: >> > how can I detect which exact business rule is having error >> >>Check out "Debugging Rules" section of Drools documentation: >> http://bit.ly/9PRDRJ >> >> @Wolfgang, >> >>No need to be a hater Wolfgang, the question is simple. I agree, >> examples would be helpful, but that is NOT how you grow a friendly >> community. >> >>Community is the biggest problem JBoss has. Why is it so inhumanly >> difficult to be polite and considerate? >> >> /Anatoly >> >> -- >> View this message in context: >> http://drools-java-rules-engine.46999.n3.nabble.com/Rules-doubt-tp774023p775029.html >> Sent from the Drools - User mailing list archive at Nabble.com. >> ___ >> rules-users mailing list >> rules-users@lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/rules-users >> > > > ___ > rules-users mailing list > rules-users@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users > > ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Rules doubt
This is My rule rule "Area_SquareFt_01_10-01-09_12-31-14" date-effective "01-Oct-2009" date-expires "31-Dec-2014" salience 6 no-loop true when eval(BusinessLogic.gettest("Inside Area_SquareFt_01_10-01-09_12-31-14 executed")) objectP2483 : Para_2483( (fid2335=="Block") && (fid2336=="16") ); then System.out.println("Area_SquareFt_01_10-01-09_12-31-14 executed"); objectP2483.setFid31003(new Double(497)); end here My 31003 is a String field but i am assigning a Double in it so that should'nt work . But the problem is because of this my all remmaning rules also stoped working. And it took 2 hours to detect it because the execute() method dosent through any error. So how can we detect these situation earlier ,so as to catch the problem early and why my the remm rules stoped woking because on this. On 5/4/10, tolitius wrote: > > > @Puneet, > >Examples would be useful to understand what kind of problem you are > having. As to > Puneet wrote: > > how can I detect which exact business rule is having error > >Check out "Debugging Rules" section of Drools documentation: > http://bit.ly/9PRDRJ > > @Wolfgang, > >No need to be a hater Wolfgang, the question is simple. I agree, > examples would be helpful, but that is NOT how you grow a friendly > community. > >Community is the biggest problem JBoss has. Why is it so inhumanly > difficult to be polite and considerate? > > /Anatoly > > -- > View this message in context: > http://drools-java-rules-engine.46999.n3.nabble.com/Rules-doubt-tp774023p775029.html > Sent from the Drools - User mailing list archive at Nabble.com. > ___ > rules-users mailing list > rules-users@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users > ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Rules doubt
@ friends, This is My rule:- rule "Area_SquareFt_01_10-01-09_12-31-14" date-effective "01-Oct-2009" date-expires "31-Dec-2014" salience 6 no-loop true when eval(BusinessLogic.gettest("Inside Area_SquareFt_01_10-01-09_12-31-14 executed")) objectP2483 : Para_2483( (fid2335=="Block") && (fid2336=="16") ); then System.out.println("Area_SquareFt_01_10-01-09_12-31-14 executed"); objectP2483.setFid31003(new Double(497)); end here My 31003 is a String field but i am assigning a Double in it so that should'nt work . But the problem is because of this my all remmaning rules also stoped working. And it took 2 hours to detect it because the execute() method dosent through any error. So how can we detect these situation earlier ,so as to catch the problem early and why my the remm rules stoped woking because on this. On 5/4/10, Wolfgang Laun wrote: > > Would you please turn your screen a little more to the left and enlarge the > font so > that we can see what "mistake" you have made and what the error message is? > > It would also help if we could see when this "mistake" happens. > > -W > > > 2010/5/3 Puneet duggal > >> @ friends, >> >> >> i am facing a problem in my business rules and it is :- >> >> >> when i make single mistake in my business rule rest all rules >> stops working ,why is it so ? and how can i detect which exact business >> rule is having >> error >> >> thanks >> Puneet >> >> ___ >> rules-users mailing list >> rules-users@lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/rules-users >> >> > > ___ > rules-users mailing list > rules-users@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users > > ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Rules doubt
heh.. the kbuilder.getErrors() will show you some of the errors that you can have at compilation time. If you have just one error that will make all your knowledge uncompilable. And because drools construct/build a network of nodes based on all your knowledge you cannot have errors in one of the rules. On Mon, May 3, 2010 at 11:10 PM, tolitius wrote: > > @Puneet, > >Examples would be useful to understand what kind of problem you are > having. As to > Puneet wrote: > > how can I detect which exact business rule is having error > > Check out "Debugging Rules" section of Drools documentation: > http://bit.ly/9PRDRJ > > @Wolfgang, > >No need to be a hater Wolfgang, the question is simple. I agree, > examples would be helpful, but that is NOT how you grow a friendly > community. > >Community is the biggest problem JBoss has. Why is it so inhumanly > difficult to be polite and considerate? > > /Anatoly > > -- > View this message in context: > http://drools-java-rules-engine.46999.n3.nabble.com/Rules-doubt-tp774023p775029.html > Sent from the Drools - User mailing list archive at Nabble.com. > ___ > rules-users mailing list > rules-users@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users > -- - http://salaboy.wordpress.com - http://www.jbug.com.ar - Salatino "Salaboy" Mauricio - ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Rules doubt
@Puneet, Examples would be useful to understand what kind of problem you are having. As to Puneet wrote: > how can I detect which exact business rule is having error Check out "Debugging Rules" section of Drools documentation: http://bit.ly/9PRDRJ @Wolfgang, No need to be a hater Wolfgang, the question is simple. I agree, examples would be helpful, but that is NOT how you grow a friendly community. Community is the biggest problem JBoss has. Why is it so inhumanly difficult to be polite and considerate? /Anatoly -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Rules-doubt-tp774023p775029.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Rules doubt
Would you please turn your screen a little more to the left and enlarge the font so that we can see what "mistake" you have made and what the error message is? It would also help if we could see when this "mistake" happens. -W 2010/5/3 Puneet duggal > @ friends, > > > i am facing a problem in my business rules and it is :- > > > when i make single mistake in my business rule rest all rules > stops working ,why is it so ? and how can i detect which exact business > rule is having > error > > thanks > Puneet > > ___ > rules-users mailing list > rules-users@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users > > ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users