[rules-users] how to write regular expressions in drools..

2008-05-30 Thread Nagaraju runkana
HI Guys, present i am using drools 4.0 in this case.now, i am writting some rules validation using regular expression ZIPCODE,EMAIL,CREDIT CARD number.like this.. validation.dslr rule email.mandatory:[insert][update][ui] when There is an Order Order

[rules-users] Drools 4.0.7 supports Clustering and DB interaction ?

2008-05-30 Thread Thalupula Ravi
Hi, Can some one answer my questions regarding drools support 1. is drools supports clustering? 2. is drools supports Database interactions? appreciate your help. it would be great for me, if any body provide examples for above things. -- View this message in context:

RE: [rules-users] Drools 4.0.7 supports Clustering and DB interaction ?

2008-05-30 Thread Anstis, Michael (M.)
Partial answer. 2. Drools supports database interactions. Have a look at the from clause which allows for retrieval of data from outside the working memory. Cheers, Mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thalupula Ravi Sent: 30 May 2008

Re: [rules-users] how to write regular expressions in drools..

2008-05-30 Thread Christine
Chanti, what exactly is your question? I think that checking zipcode and credit card formats is easier to do in java than with rules. Rules are more efficient in more complex situations, like when you have multiple objects that need to meet various conditions. Christine On Fri, May 30, 2008

RE: [rules-users] Drools 4.0.7 supports Clustering and DB interaction ?

2008-05-30 Thread Thalupula Ravi
Hi Mike, Thanks for your quick response, just now read about from in the manual. Anstis, Michael (M.) wrote: Partial answer. 2. Drools supports database interactions. Have a look at the from clause which allows for retrieval of data from outside the working memory. Cheers, Mike

Re: [rules-users] how to write regular expressions in drools..

2008-05-30 Thread Jaroslaw Kijanowski
Hi, you have to escape characters with regexp meaning (see docs for details). Try this: email matches @\[A-Za-z0-9\]* phone not matches d{3}-d{3}-d{4} Moreover I guess your rule is anyway broken, you will get a cross product of Orders, so I would remove There is an Order

Re: [rules-users] how to write regular expressions in drools..

2008-05-30 Thread Nagaraju runkana
Thanks for replay Chri. in present product is writting rules validating fields related to table.In this case i writting diff rules.like this is length rule it's working ... rule name.lengthRule:[insert][update][ui] when There is an Category Category name length is greater than 8

Re: [rules-users] Using global in LHS

2008-05-30 Thread Markus Helbig
Hi, also using memberOf results in: Unable to create Field Extractor for 'advertisment' of '[ClassObjectType do i'll miss sth else? Cheers Markus On Thu, May 29, 2008 at 2:48 PM, Jaroslaw Kijanowski [EMAIL PROTECTED] wrote: Hi, there are two issues: - the left side of contains needs to be

Re: [rules-users] how to write regular expressions in drools..

2008-05-30 Thread Nagaraju runkana
HI Jar, Thanks for replay, i am try to like this also: email matches @\[A-Za-z0-9\]* in this case also nagetive test cases Build Success. Chanti On Fri, May 30, 2008 at 2:49 PM, Jaroslaw Kijanowski [EMAIL PROTECTED] wrote: Hi, you have to escape characters with regexp meaning (see docs

Re: [rules-users] Using global in LHS

2008-05-30 Thread Jaroslaw Kijanowski
Markus Helbig wrote: Hi, also using memberOf results in: Unable to create Field Extractor for 'advertisment' of '[ClassObjectType do i'll miss sth else? Yes, I guess so ;) Now you are using is of type Advertisment=advertisment memberOf catId right? As I said before the let side of contains,

Re: [rules-users] Drools 4.0.7 supports Clustering and DB interaction ?

2008-05-30 Thread Marcus Ilgner
Hi, On Fri, May 30, 2008 at 10:13 AM, Thalupula Ravi [EMAIL PROTECTED] wrote: Hi, Can some one answer my questions regarding drools support 1. is drools supports clustering? I don't have that much experience on the topic, but I my guess would be that if you write your code on top of some

Re: [rules-users] how to write regular expressions in drools..

2008-05-30 Thread Nagaraju runkana
i am trying to another way like this .. rule email.firstletter:[insert][update][ui] when There is an Order Order email address statr with @ // OrderBean(eval(email.indexOf('@',0) == 0)) then Reject with response : email address must not start with @ end this time also same problem.any

Re: [rules-users] Drools 4.0.7 supports Clustering and DB interaction ?

2008-05-30 Thread Mark Proctor
Thalupula Ravi wrote: Hi Marcus, Thanks for your information. I'm using BRMS at JBOSS AS and planning to use BRMS to deploy my rules as packages (.pkg). Using Rule Agent, my client will invoke the rules. My Client holding only drool-core.jar library. In the above scenario, 1. can we have

[rules-users] Re: Old drools-spring project

2008-05-30 Thread Lake Pancake
Thanks for the reply. I was primarily attracted to spring-drools because of the use of Java to define complex logic in the conditions, but I have since found this old thread that summarizes pretty nicely how to do that without spring-drools:

RE: [rules-users] Re: Old drools-spring project

2008-05-30 Thread Anstis, Michael (M.)
Without knowledge of your use case or domain model the below seems reasonable! Cheers, Mike _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lake Pancake Sent: 30 May 2008 13:33 To: rules-users@lists.jboss.org Subject: [rules-users] Re: Old drools-spring project

Re: [rules-users] Don't process rules when adding new package to rulebase

2008-05-30 Thread Remi Barraquand
Hi Mark and thanks for your reply. Well i've tried to replace the default RuleBaseUpdateHandler from the RuleBaseConfiguration but without success... the setter actually take a string.. which i think should be the class name. But when i set my class, i get an exception saying that the factory

Re: [rules-users] Advantages and Disadvantages of from

2008-05-30 Thread Thalupula Ravi
Hi Marcus, Again thanks for your information. Appreciate your help. Regards, Ravi T Marcus Ilgner wrote: Hi, On Fri, May 30, 2008 at 5:06 PM, Thalupula Ravi [EMAIL PROTECTED] wrote: Hi, Can some one describe about advantages and disadvantages of below to approaches 1.