[rules-users] can drools support complex rules

Bhushan Bhangale bhushan_bhangale at kaleconsultants.com
Tue May 19 06:57:31 EDT 2009


Hi,

 

I recently came across Drools. I gone through the documentation and the
examples provide are quite simple. I want to know if it can be really
applied to complex real world problems.

 

Take for example,

 

If a customer login within 5 minutes from two different locations, mark the
user invalid.

How can I write the above rule in drools? I have the data when the user last
logged in and the data of current login. You can say two objects.

 

May be my understanding is wrong but looks like based on rule I have to pass
all the required data. How can then at real time new rules can be added?

 

For example,

 

If the customer location is not on a list of valid locations, mark the user
invalid.

 

For the above rule I need to pass a list of valid locations as well.

 

Now how about "Customer login from more than 5 locations in the last one
month"?

 

Thanks


Mr. Bhangale Bhushan
Associate Manager
Kale Consultants Ltd.
 <mailto:bhushan_bhangale at kaleconsultants.com>
bhushan_bhangale at kaleconsultants.com
tel:
<http://www.plaxo.com/click_to_call?lang=en&src=jj_signature&To=%2B91+%280%2
9206+608+3777&Email=bhushan_bhangale at kaleconsultants.com> +91 (0)206 608
3777
 <http://www.kaleconsultants.com> http://www.kaleconsultants.com 

 


 


 

 




Disclaimer: This email (including any attachments) is intended for the sole
use of the recipient/s and may contain material that is CONFIDENTIAL. Any
unauthorized disclosure / copying / distribution or forwarding of this message 
or part is STRICTLY PROHIBITED. If you have erroneously received this message,
please delete it immediately and notify the sender. No liability is assumed for
any errors and/or omissions in the contents of this message. Information in 
this message that does not relate to the official business of this Company
shall be understood as neither given nor endorsed by it. If verification is
required please request a hard-copy version. 

To know more about Kale Consultants, visit www.kaleconsultants.com 

-=-=-=-=-=-=-=-=-=-


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


More information about the rules-users mailing list