Drools is very well equipped for handling large fact collections. As to the examples you cite, #1 and #2 are simple, as you apparently know. As for #3, check the documentation on the "collect" and "accumulate" patterns, which should satisfy you that it can be implemented without undue strain. (To wit: accumulate over logins, later (now-1month), of that customer, maintaining a Set of locations, which must be size()>5 at the end. As simple as that.)

Also, keep in mind that you have Java as a fallback; so if some problem cannot be implemented easily by pattern matching, you can alway resort to procedural code.

-W


2009/5/19 Bhushan Bhangale <bhushan_bhangale@kaleconsultants.com>

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.
bhushan_bhangale@kaleconsultants.com
tel: +91 (0)206 608 3777
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 

----------




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